altosui/altoslib: Add call to …Preferences.init() with backend object, remove static...
[fw/altos] / altosui / AltosUI.java
index e4af6b3b39d295674dd79b7605c3cee5f0330bd1..52b6b128c16bf411b7a3521d1aa2749ee6697c79 100644 (file)
@@ -87,7 +87,7 @@ public class AltosUI extends AltosFrame {
                c.weighty = 1;
                b = new JButton(label);
 
-               Dimension ps = b.getPreferredSize();
+               //Dimension ps = b.getPreferredSize();
 
                gridbag.setConstraints(b, c);
                add(b, c);
@@ -98,6 +98,7 @@ public class AltosUI extends AltosFrame {
 
                load_library(null);
 
+               AltosUIPreferences.init(new AltosUIPreferencesBackend());
                AltosUIPreferences.set_component(this);
 
                pane = getContentPane();
@@ -441,7 +442,7 @@ public class AltosUI extends AltosFrame {
                        return null;
                }
                AltosRecordIterable recs;
-               AltosReplayReader reader;
+               //AltosReplayReader reader;
                if (file.getName().endsWith("eeprom")) {
                        recs = new AltosEepromIterable(in);
                } else {