summaryrefslogtreecommitdiff
path: root/altosuilib/AltosUIConfigure.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-01-20 15:42:05 -0800
committerKeith Packard <keithp@keithp.com>2013-01-20 15:45:16 -0800
commit3454592169dcb61b81de9af2b631b87e7dd86231 (patch)
treef0c164421914de1363d09c464200d55c82325364 /altosuilib/AltosUIConfigure.java
parentcf03ab3383b679e6617e8ab7004be91e5a727562 (diff)
altosui: Make initial AltOS window position configurable
Give the user a choice of nine locations on the screen Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUIConfigure.java')
-rw-r--r--altosuilib/AltosUIConfigure.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/altosuilib/AltosUIConfigure.java b/altosuilib/AltosUIConfigure.java
index 6c9a841e..90b413d6 100644
--- a/altosuilib/AltosUIConfigure.java
+++ b/altosuilib/AltosUIConfigure.java
@@ -202,9 +202,10 @@ public class AltosUIConfigure
row++;
}
- public void add_serial_debug() {
- GridBagConstraints c = new GridBagConstraints();
+ public void add_position () {
+ }
+ public void add_serial_debug() {
/* Serial debug setting */
pane.add(new JLabel("Serial Debug"), constraints(0, 1));
@@ -217,12 +218,8 @@ public class AltosUIConfigure
}
});
serial_debug.setToolTipText("Enable/Disable USB I/O getting sent to the console");
- c.gridx = 1;
- c.gridy = row++;
- c.gridwidth = 3;
- c.fill = GridBagConstraints.NONE;
- c.anchor = GridBagConstraints.WEST;
- pane.add(serial_debug, c);
+ pane.add(serial_debug, constraints(1,2));
+ row++;
}
public void add_bluetooth() {
@@ -253,8 +250,10 @@ public class AltosUIConfigure
add_log_dir();
add_callsign();
add_units();
+ add_serial_debug();
add_font_size();
add_look_and_feel();
+ add_position();
add_bluetooth();
add_frequencies();