chiark / gitweb /
Show progress of various things in log, with milliseconds
[jarrg-ian.git] / src / com / tedpearson / ypp / market / ControlPanel.java
index dc91b06e9b30b9aa1b72baf1c96b6375f2b6593c..62886c16e6a88cb9310b0b129b58274ec8478879 100644 (file)
@@ -19,6 +19,7 @@ public class ControlPanel extends JFrame {
                final Preferences prefs = Preferences.userNodeForPackage(getClass());
                final JCheckBox toPCTB = new JCheckBox("Upload to PCTB?", prefs.getBoolean("uploadToPCTB", true));
                final JCheckBox toYarrg = new JCheckBox("Upload to Yarrg?", prefs.getBoolean("uploadToYarrg", true));
+               final JCheckBox showArbitrage = new JCheckBox("Show arbitrage?", prefs.getBoolean("showArbitrage", false));
 
                final JRadioButton live = new JRadioButton("Use live servers");
                final JRadioButton testing = new JRadioButton("Use testing servers");
@@ -34,9 +35,10 @@ public class ControlPanel extends JFrame {
                    com.tedpearson.ypp.market.Version.version;
                JLabel version = new JLabel(version_label);
 
-               setLayout(new GridLayout(6,1));
+               setLayout(new GridLayout(7,1));
                add(toPCTB);
                add(toYarrg);
+               add(showArbitrage);
                add(live);
                add(testing);
                add(version);
@@ -47,9 +49,9 @@ public class ControlPanel extends JFrame {
                add(but);
                but.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
-                               prefs.putBoolean("launchAtStartup", true);
                                prefs.putBoolean("uploadToPCTB", toPCTB.isSelected());
                                prefs.putBoolean("uploadToYarrg", toYarrg.isSelected());
+                               prefs.putBoolean("showArbitrage", showArbitrage.isSelected());
                                prefs.putBoolean("useLiveServers", live.isSelected());
                                System.exit(exitstatus);
                        }