make infotable scrollable, revert its fontsize to 14
[fw/altos] / ao-tools / altosui / AltosFlightUI.java
index 3581c54c1ce8a6b14c5135ecb1839b656bc05ec6..f56b3d1bd4cf200a79e6e8736fc1234ceaf486c9 100644 (file)
@@ -44,6 +44,7 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay {
        AltosAscent     ascent;
        AltosDescent    descent;
        AltosLanded     landed;
+    AltosSiteMap    sitemap;
 
        private AltosStatusTable flightStatus;
        private AltosInfoTable flightInfo;
@@ -93,6 +94,7 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay {
                descent.reset();
                landed.reset();
                flightInfo.clear();
+               sitemap.reset();
        }
 
        public void show(AltosState state, int crc_errors) {
@@ -119,6 +121,7 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay {
                }
                flightStatus.set(state);
                flightInfo.show(state, crc_errors);
+               sitemap.show(state, crc_errors);
        }
 
        public AltosFlightUI(AltosVoice in_voice, AltosFlightReader in_reader, final int serial) {
@@ -153,7 +156,10 @@ public class AltosFlightUI extends JFrame implements AltosFlightDisplay {
                pane.add("Landed", landed);
 
                flightInfo = new AltosInfoTable();
-               pane.add("Table", flightInfo.box());
+               pane.add("Table", new JScrollPane(flightInfo.box()));
+
+        sitemap = new AltosSiteMap();
+        pane.add("Site Map", sitemap);
 
                vbox.add(pane);