diff options
| author | Keith Packard <keithp@keithp.com> | 2010-07-28 20:18:36 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2010-07-28 20:18:36 -0700 |
| commit | d2d772164af95a35ea0f5d2413a5be67de9a210f (patch) | |
| tree | 2e2b037facef5b33030b9b3443abe9ba259c1efb /ao-tools/altosui/AltosEepromMonitor.java | |
| parent | ea32290704a8ca468f01172166b561833b20c954 (diff) | |
altosui: Replace device dialog. Center eeprom monitor.
This adds a custom dialog for selecting device, which makes it look
much nicer on the screen and allows the user to double-click on an
entry to select it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosEepromMonitor.java')
| -rw-r--r-- | ao-tools/altosui/AltosEepromMonitor.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ao-tools/altosui/AltosEepromMonitor.java b/ao-tools/altosui/AltosEepromMonitor.java index 9eb3f0d0..e110a354 100644 --- a/ao-tools/altosui/AltosEepromMonitor.java +++ b/ao-tools/altosui/AltosEepromMonitor.java @@ -55,8 +55,8 @@ public class AltosEepromMonitor extends JDialog { super (owner, "Download Flight Data", false); GridBagConstraints c; - Insets il = new Insets(4,0,4,4); - Insets ir = new Insets(4,4,4,0); + Insets il = new Insets(4,4,4,4); + Insets ir = new Insets(4,4,4,4); pane = getContentPane(); pane.setLayout(new GridBagLayout()); @@ -126,7 +126,7 @@ public class AltosEepromMonitor extends JDialog { c.anchor = GridBagConstraints.CENTER; c.gridx = 0; c.gridy = 3; c.gridwidth = GridBagConstraints.REMAINDER; - Insets ib = new Insets(4,0,4,0); + Insets ib = new Insets(4,4,4,4); c.insets = ib; pane.add(pbar, c); @@ -142,6 +142,7 @@ public class AltosEepromMonitor extends JDialog { pane.add(cancel, c); pack(); + setLocationRelativeTo(owner); setVisible(true); } |
