private AltosFlightStatus flightStatus;
private JScrollPane flightInfoPane;
- private JScrollPane sitemapPane;
private AltosInfoTable flightInfo;
static final int tab_pad = 1;
}
Container bag;
+ JComboBox channels;
public AltosFlightUI(AltosVoice in_voice, AltosFlightReader in_reader, final int serial) {
AltosPreferences.init(this);
if (serial >= 0) {
// Channel menu
- JComboBox channels = new AltosChannelMenu(AltosPreferences.channel(serial));
+ channels = new AltosChannelMenu(AltosPreferences.channel(serial));
channels.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
- int channel = Integer.parseInt(e.getActionCommand());
+ int channel = channels.getSelectedIndex();
reader.set_channel(channel);
AltosPreferences.set_channel(serial, channel);
}
pane.add("Table", flightInfoPane);
sitemap = new AltosSiteMap();
- sitemapPane = new JScrollPane(sitemap);
- pane.add("Site Map", sitemapPane);
+ pane.add("Site Map", sitemap);
c.gridx = 0;
c.gridy = 2;