diff options
| author | Keith Packard <keithp@keithp.com> | 2010-11-16 22:20:00 +0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2010-11-16 22:20:00 +0800 |
| commit | d0eb41619544ead6d9dab3a8d024a12936c9cdd0 (patch) | |
| tree | 4fb427d21515541adffe3a7c4edb6b03d534cf8e /ao-tools/altosui/AltosFlightStatus.java | |
| parent | fcca333cda64be35f0c9fb0109eef1be3709dddd (diff) | |
altosui: Cleanup flight UI layout
Use common constants for fonts and insets
Shrink fonts so that the window is < 600 pixels tall.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosFlightStatus.java')
| -rw-r--r-- | ao-tools/altosui/AltosFlightStatus.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ao-tools/altosui/AltosFlightStatus.java b/ao-tools/altosui/AltosFlightStatus.java index b99a5325..59c9e9db 100644 --- a/ao-tools/altosui/AltosFlightStatus.java +++ b/ao-tools/altosui/AltosFlightStatus.java @@ -31,8 +31,6 @@ import java.util.concurrent.LinkedBlockingQueue; public class AltosFlightStatus extends JComponent implements AltosFlightDisplay { GridBagLayout layout; - private Font status_font; - public class FlightValue { JLabel label; JTextField value; @@ -51,14 +49,14 @@ public class AltosFlightStatus extends JComponent implements AltosFlightDisplay c.weighty = 1; label = new JLabel(text); - label.setFont(status_font); + label.setFont(Altos.status_font); label.setHorizontalAlignment(SwingConstants.CENTER); c.gridx = x; c.gridy = 0; layout.setConstraints(label, c); add(label); value = new JTextField(""); - value.setFont(status_font); + value.setFont(Altos.status_font); value.setHorizontalAlignment(SwingConstants.CENTER); c.gridx = x; c.gridy = 1; layout.setConstraints(value, c); @@ -145,7 +143,6 @@ public class AltosFlightStatus extends JComponent implements AltosFlightDisplay public AltosFlightStatus() { layout = new GridBagLayout(); - status_font = new Font("SansSerif", Font.BOLD, 24); setLayout(layout); call = new Call(layout, 0); |
