diff options
author | Ben Burwell <ben.burwell@trifecta.com> | 2016-11-20 01:34:08 -0500 |
---|---|---|
committer | Ben Burwell <ben.burwell@trifecta.com> | 2016-11-20 01:34:08 -0500 |
commit | f1e32ed443bafc03448f0f3b36c712b9293e71e7 (patch) | |
tree | bd4c5f6dd692bd3d1f16bdd00f57d996cecc5688 /src/main/java/com/benburwell/planes/gui/airportstable | |
parent | be4974518d4e24f66c19ceffc1e633e3e306956b (diff) |
File cleanup
Diffstat (limited to 'src/main/java/com/benburwell/planes/gui/airportstable')
-rw-r--r-- | src/main/java/com/benburwell/planes/gui/airportstable/AirportsComponent.java | 14 | ||||
-rw-r--r-- | src/main/java/com/benburwell/planes/gui/airportstable/NavigationAidsTableModel.java | 2 |
2 files changed, 8 insertions, 8 deletions
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<Airport> 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" }; |