altosui: Replace device dialog. Center eeprom monitor.
[fw/altos] / ao-tools / altosui / AltosEepromMonitor.java
index 9eb3f0d03abbfc4015eafad6ee71835d79cfd21c..e110a354d11337fc75ffd7a1f302b28f5c57606e 100644 (file)
@@ -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);
        }