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/AltosFlightUI.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/AltosFlightUI.java')
| -rw-r--r-- | ao-tools/altosui/AltosFlightUI.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ao-tools/altosui/AltosFlightUI.java b/ao-tools/altosui/AltosFlightUI.java index 5134a24e..78b005c0 100644 --- a/ao-tools/altosui/AltosFlightUI.java +++ b/ao-tools/altosui/AltosFlightUI.java @@ -187,7 +187,7 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay { this.setJMenuBar(menubar); } - this.setSize(new Dimension (width(), height())); + this.setSize(this.getPreferredSize()); this.validate(); setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); |
