From 2878db1ab701af84a83af713519eb0cf83370310 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Mon, 13 Apr 2015 18:24:06 +0100 Subject: [PATCH] Remove unneeded imports --- .classpath | 5 +++++ .settings/org.eclipse.core.resources.prefs | 1 + src/main/java/wf/doyle/blockbuster/gui/GUI.java | 17 ++++++++--------- src/main/java/wf/doyle/blockbuster/util/Library.java | 1 - 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.classpath b/.classpath index af1430b..1a8c6f1 100644 --- a/.classpath +++ b/.classpath @@ -22,5 +22,10 @@ + + + + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs index f9fe345..839d647 100644 --- a/.settings/org.eclipse.core.resources.prefs +++ b/.settings/org.eclipse.core.resources.prefs @@ -1,4 +1,5 @@ eclipse.preferences.version=1 encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 encoding//src/test/java=UTF-8 encoding/=UTF-8 diff --git a/src/main/java/wf/doyle/blockbuster/gui/GUI.java b/src/main/java/wf/doyle/blockbuster/gui/GUI.java index e030e83..2af5482 100644 --- a/src/main/java/wf/doyle/blockbuster/gui/GUI.java +++ b/src/main/java/wf/doyle/blockbuster/gui/GUI.java @@ -1,27 +1,21 @@ package wf.doyle.blockbuster.gui; -import java.awt.EventQueue; - import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import java.awt.GridLayout; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import java.lang.reflect.Field; import java.util.Collections; -import java.util.Comparator; import java.util.List; import javax.swing.JTabbedPane; import javax.swing.JButton; import javax.swing.JLabel; +import javax.swing.SwingConstants; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import wf.doyle.blockbuster.App; -import wf.doyle.blockbuster.file.FileReader; import wf.doyle.blockbuster.item.LibraryItem; import wf.doyle.blockbuster.item.items.printed.Book; import wf.doyle.blockbuster.item.items.printed.Periodical; @@ -35,13 +29,19 @@ import wf.doyle.blockbuster.util.EnumLineType; public class GUI extends JFrame { /** + * Serial Version UID + */ + private static final long serialVersionUID = 1L; + + /** * Content Pane */ private JPanel contentPane; + /** * Tabbed Pane */ - private final JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP); + private final JTabbedPane tabbedPane = new JTabbedPane(SwingConstants.TOP); /** * Create the frame. @@ -57,7 +57,6 @@ public class GUI extends JFrame { } catch(ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) { - // TODO Auto-generated catch block e.printStackTrace(); } setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); diff --git a/src/main/java/wf/doyle/blockbuster/util/Library.java b/src/main/java/wf/doyle/blockbuster/util/Library.java index 995f9cf..253d503 100644 --- a/src/main/java/wf/doyle/blockbuster/util/Library.java +++ b/src/main/java/wf/doyle/blockbuster/util/Library.java @@ -5,7 +5,6 @@ import java.net.URISyntaxException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Collections; -import java.util.Comparator; import java.util.List; import wf.doyle.blockbuster.App; -- libgit2 1.7.2