From f1e32ed443bafc03448f0f3b36c712b9293e71e7 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sun, 20 Nov 2016 01:34:08 -0500 Subject: File cleanup --- .../planes/gui/airportstable/AirportsComponent.java | 14 +++++++------- .../planes/gui/airportstable/NavigationAidsTableModel.java | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/main/java/com/benburwell/planes/gui/airportstable') diff --git a/src/main/java/com/benburwell/planes/gui/airportstable/AirportsComponent.java b/src/main/java/com/benburwell/planes/gui/airportstable/AirportsComponent.java index 8739de7..14eaca9 100644 --- a/src/main/java/com/benburwell/planes/gui/airportstable/AirportsComponent.java +++ b/src/main/java/com/benburwell/planes/gui/airportstable/AirportsComponent.java @@ -5,20 +5,20 @@ import com.benburwell.planes.data.CSVObjectStore; import com.benburwell.planes.gui.Tabbable; import com.benburwell.planes.gui.navigationaids.AirportsTableModel; -import javax.swing.*; +import javax.swing.JComponent; +import javax.swing.JScrollPane; +import javax.swing.JTable; /** - * Created by ben on 11/19/16. + * @author ben */ public class AirportsComponent implements Tabbable { private JScrollPane scrollPane = new JScrollPane(); - private JTable table = new JTable(); - private AirportsTableModel tableModel; public AirportsComponent(CSVObjectStore airportStore) { - this.tableModel = new AirportsTableModel(airportStore.getObjects()); - this.table = new JTable(this.tableModel); - this.table.setFillsViewportHeight(true); + AirportsTableModel tableModel = new AirportsTableModel(airportStore.getObjects()); + JTable table = new JTable(tableModel); + table.setFillsViewportHeight(true); this.scrollPane = new JScrollPane(table); } diff --git a/src/main/java/com/benburwell/planes/gui/airportstable/NavigationAidsTableModel.java b/src/main/java/com/benburwell/planes/gui/airportstable/NavigationAidsTableModel.java index 3ce098f..93af44c 100644 --- a/src/main/java/com/benburwell/planes/gui/airportstable/NavigationAidsTableModel.java +++ b/src/main/java/com/benburwell/planes/gui/airportstable/NavigationAidsTableModel.java @@ -6,7 +6,7 @@ import com.benburwell.planes.data.NavigationAid; import javax.swing.table.AbstractTableModel; /** - * Created by ben on 11/19/16. + * @author ben */ public class NavigationAidsTableModel extends AbstractTableModel { private final String[] COLUMN_NAMES = { "Ident", "Type", "Frequency", "DME Frequency", "DME Channel", "Usage Type", "Power", "Airport" }; -- cgit v1.2.3