AltosAscent ascent;
AltosDescent descent;
AltosLanded landed;
+ AltosSiteMap sitemap;
private AltosFlightStatus flightStatus;
private AltosInfoTable flightInfo;
descent.reset();
landed.reset();
flightInfo.clear();
+ sitemap.reset();
}
public void show(AltosState state, int crc_errors) {
}
flightStatus.show(state, crc_errors);
flightInfo.show(state, crc_errors);
+ sitemap.show(state, crc_errors);
}
public void set_exit_on_close() {
// Channel menu
channels = new AltosChannelMenu(AltosPreferences.channel(serial));
channels.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- int channel = channels.getSelectedIndex();
- reader.set_channel(channel);
- AltosPreferences.set_channel(serial, channel);
- }
- });
+ public void actionPerformed(ActionEvent e) {
+ int channel = channels.getSelectedIndex();
+ reader.set_channel(channel);
+ AltosPreferences.set_channel(serial, channel);
+ }
+ });
c.gridx = 0;
c.gridy = 0;
c.anchor = GridBagConstraints.WEST;
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;
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);