summaryrefslogtreecommitdiff
path: root/src/main/java/com/benburwell/planes/gui/navigationaids/NavigationAidComponent.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/benburwell/planes/gui/navigationaids/NavigationAidComponent.java')
-rw-r--r--src/main/java/com/benburwell/planes/gui/navigationaids/NavigationAidComponent.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/com/benburwell/planes/gui/navigationaids/NavigationAidComponent.java b/src/main/java/com/benburwell/planes/gui/navigationaids/NavigationAidComponent.java
index 1238873..e33f0f8 100644
--- a/src/main/java/com/benburwell/planes/gui/navigationaids/NavigationAidComponent.java
+++ b/src/main/java/com/benburwell/planes/gui/navigationaids/NavigationAidComponent.java
@@ -5,20 +5,20 @@ import com.benburwell.planes.data.NavigationAid;
import com.benburwell.planes.gui.Tabbable;
import com.benburwell.planes.gui.airportstable.NavigationAidsTableModel;
-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 NavigationAidComponent implements Tabbable {
- private JTable table;
- private NavigationAidsTableModel tableModel;
private JScrollPane scrollPane;
public NavigationAidComponent(CSVObjectStore<NavigationAid> store) {
- this.tableModel = new NavigationAidsTableModel(store);
- this.table = new JTable(this.tableModel);
- this.table.setFillsViewportHeight(true);
+ NavigationAidsTableModel tableModel = new NavigationAidsTableModel(store);
+ JTable table = new JTable(tableModel);
+ table.setFillsViewportHeight(true);
this.scrollPane = new JScrollPane(table);
}