AltosAscent ascent;
AltosDescent descent;
AltosLanded landed;
- AltosSiteMap sitemap;
++ AltosSiteMap sitemap;
private AltosFlightStatus flightStatus;
- private JScrollPane flightInfoPane;
private AltosInfoTable flightInfo;
static final int tab_pad = 1;
// 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;
pane.add("Landed", landed);
flightInfo = new AltosInfoTable();
- flightInfoPane = new JScrollPane(flightInfo.box());
- pane.add("Table", flightInfoPane);
+ pane.add("Table", new JScrollPane(flightInfo));
- sitemap = new AltosSiteMap();
- pane.add("Site Map", sitemap);
++ 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;
c.fill = GridBagConstraints.BOTH;
import java.util.prefs.*;
import java.util.concurrent.LinkedBlockingQueue;
- public class AltosInfoTable {
- private Box box;
- private JTable table[];
- private AltosFlightInfoTableModel model[];
- private Box ibox[];
+ public class AltosInfoTable extends JTable {
+ private AltosFlightInfoTableModel model;
- private Font infoLabelFont = new Font("SansSerif", Font.PLAIN, 12);
- private Font infoValueFont = new Font("Monospaced", Font.PLAIN, 12);
+ private Font infoLabelFont = new Font("SansSerif", Font.PLAIN, 14);
+ private Font infoValueFont = new Font("Monospaced", Font.PLAIN, 14);
static final int info_columns = 3;
static final int info_rows = 17;