Merge branch 'master' of git://git.gag.com/fw/altos
[fw/altos] / ao-tools / altosui / AltosEepromMonitor.java
index 9eb3f0d03abbfc4015eafad6ee71835d79cfd21c..b88fdd2924cc4f60e9e7e2f407e79b2c9c9acd1d 100644 (file)
@@ -30,6 +30,7 @@ import java.util.concurrent.LinkedBlockingQueue;
 
 import altosui.AltosSerial;
 import altosui.AltosSerialMonitor;
+import altosui.AltosRecord;
 import altosui.AltosTelemetry;
 import altosui.AltosState;
 import altosui.AltosDeviceDialog;
@@ -55,8 +56,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 +127,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 +143,7 @@ public class AltosEepromMonitor extends JDialog {
                pane.add(cancel, c);
 
                pack();
+               setLocationRelativeTo(owner);
                setVisible(true);
        }