docs: Document altosui "Graph Data" button
[fw/altos] / ao-tools / altosui / AltosLanded.java
index d170ccad4574d11962b1e2c77dcee52ea3c9d28d..d34efe6dbcfb8f2a7540754809bcfb4df77e790c 100644 (file)
@@ -48,6 +48,7 @@ public class AltosLanded extends JComponent implements AltosFlightDisplay {
 
                public LandedValue (GridBagLayout layout, int y, String text) {
                        GridBagConstraints      c = new GridBagConstraints();
+                       c.weighty = 1;
 
                        label = new JLabel(text);
                        label.setFont(label_font);
@@ -55,15 +56,18 @@ public class AltosLanded extends JComponent implements AltosFlightDisplay {
                        c.gridx = 0; c.gridy = y;
                        c.insets = new Insets(10, 10, 10, 10);
                        c.anchor = GridBagConstraints.WEST;
+                       c.weightx = 0;
+                       c.fill = GridBagConstraints.VERTICAL;
                        layout.setConstraints(label, c);
                        add(label);
 
-                       value = new JTextField(30);
+                       value = new JTextField(Altos.text_width);
                        value.setFont(value_font);
                        value.setHorizontalAlignment(SwingConstants.RIGHT);
                        c.gridx = 1; c.gridy = y;
                        c.anchor = GridBagConstraints.WEST;
-                       c.fill = GridBagConstraints.HORIZONTAL;
+                       c.weightx = 1;
+                       c.fill = GridBagConstraints.BOTH;
                        layout.setConstraints(value, c);
                        add(value);
                }
@@ -192,8 +196,8 @@ public class AltosLanded extends JComponent implements AltosFlightDisplay {
        public AltosLanded() {
                layout = new GridBagLayout();
 
-               label_font = new Font("Dialog", Font.PLAIN, 24);
-               value_font = new Font("Monospaced", Font.PLAIN, 24);
+               label_font = new Font("Dialog", Font.PLAIN, 22);
+               value_font = new Font("Monospaced", Font.PLAIN, 22);
                setLayout(layout);
 
                /* Elements in descent display */