diff options
author | Keith Packard <keithp@keithp.com> | 2010-11-20 16:35:48 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-11-20 16:35:48 -0800 |
commit | 8df185cd95cfecbed8272dd1275d077c5b45535b (patch) | |
tree | 00c4f1c40233977b9548c6067b0f0fad452642de /ao-tools/altosui/AltosFlightUI.java | |
parent | ece2c86e2641b2cd613791293526c492b1606aa1 (diff) | |
parent | 1e712647dd6df1e77650db705f3ac32a3c8f6907 (diff) |
Merge remote branch 'aj/sitemap' into buttonbox
Conflicts:
ao-tools/altosui/AltosFlightUI.java
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosFlightUI.java')
-rw-r--r-- | ao-tools/altosui/AltosFlightUI.java | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/ao-tools/altosui/AltosFlightUI.java b/ao-tools/altosui/AltosFlightUI.java index d5bcdb10..a3a28782 100644 --- a/ao-tools/altosui/AltosFlightUI.java +++ b/ao-tools/altosui/AltosFlightUI.java @@ -42,6 +42,7 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay { AltosAscent ascent; AltosDescent descent; AltosLanded landed; + AltosSiteMap sitemap; private AltosFlightStatus flightStatus; private AltosInfoTable flightInfo; @@ -85,6 +86,7 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay { descent.reset(); landed.reset(); flightInfo.clear(); + sitemap.reset(); } public void show(AltosState state, int crc_errors) { @@ -111,6 +113,7 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay { } flightStatus.show(state, crc_errors); flightInfo.show(state, crc_errors); + sitemap.show(state, crc_errors); } public void set_exit_on_close() { @@ -182,6 +185,9 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay { flightInfo = new AltosInfoTable(); pane.add("Table", new JScrollPane(flightInfo)); + sitemap = new AltosSiteMap(); + pane.add("Site Map", sitemap); + /* Make the tabbed pane use the rest of the window space */ c.gridx = 0; c.gridy = 2; @@ -192,15 +198,15 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay { setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); addWindowListener(new WindowAdapter() { - @Override - public void windowClosing(WindowEvent e) { - disconnect(); - setVisible(false); - dispose(); - if (exit_on_close) - System.exit(0); - } - }); + @Override + public void windowClosing(WindowEvent e) { + disconnect(); + setVisible(false); + dispose(); + if (exit_on_close) + System.exit(0); + } + }); pack(); setVisible(true); |