altosui: Make romconfig serial and radio cal fields 8 digits wide
authorKeith Packard <keithp@keithp.com>
Sun, 19 Jan 2014 08:17:06 +0000 (00:17 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 19 Jan 2014 08:17:06 +0000 (00:17 -0800)
This ensure that they are wide enough to show a cc1120 calibration
value, which is 7 digits.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosRomconfigUI.java

index 694a4e0eb13beb9ed94742100127ed6d45f18949..899946790f2649db585e6e806d5c2bc8f8250a79 100644 (file)
@@ -69,7 +69,7 @@ public class AltosRomconfigUI
                c.weightx = 1;
                c.anchor = GridBagConstraints.LINE_START;
                c.insets = ir;
                c.weightx = 1;
                c.anchor = GridBagConstraints.LINE_START;
                c.insets = ir;
-               serial_value = new JTextField("0");
+               serial_value = new JTextField("00000000");
                pane.add(serial_value, c);
 
                /* Radio calibration value */
                pane.add(serial_value, c);
 
                /* Radio calibration value */
@@ -91,7 +91,7 @@ public class AltosRomconfigUI
                c.anchor = GridBagConstraints.LINE_START;
                c.insets = ir;
                c.ipady = 5;
                c.anchor = GridBagConstraints.LINE_START;
                c.insets = ir;
                c.ipady = 5;
-               radio_calibration_value = new JTextField("0");
+               radio_calibration_value = new JTextField("00000000");
                pane.add(radio_calibration_value, c);
 
                /* Buttons */
                pane.add(radio_calibration_value, c);
 
                /* Buttons */