From 28050707430b026c060a0ae29fea32c3aa88af3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 28 Jan 2009 00:30:19 +0100 Subject: [PATCH] Add javadoc. --- .../jkeytool/gui/swing/SwingInterface.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java b/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java index b67ce84..3c99f0b 100644 --- a/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java +++ b/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java @@ -75,6 +75,9 @@ public class SwingInterface implements Interface { /** Loaded key stores and their panels. */ private final Map keyStores = new HashMap(); + /** + * Creates a new Swing interface. + */ public SwingInterface() { createActions(); createFrame(); @@ -84,9 +87,16 @@ public class SwingInterface implements Interface { // ACTIONS // + /** + * Creates a new key store. + */ private void createKeyStore() { + /* TODO */ } + /** + * Exits the application. + */ private void quit() { System.exit(0); } @@ -95,6 +105,9 @@ public class SwingInterface implements Interface { // PRIVATE METHODS // + /** + * Creates all used actions. + */ private void createActions() { createKeyStoreAction = new I18nAction(i18n, "jkeytool.action.createKeyStore") { @@ -115,6 +128,9 @@ public class SwingInterface implements Interface { }; } + /** + * Creates the application main frame. + */ private void createFrame() { mainFrame.setJMenuBar(createMenubar()); mainFrame.getContentPane().add(createToolbar(), BorderLayout.PAGE_START); @@ -123,6 +139,11 @@ public class SwingInterface implements Interface { mainFrame.pack(); } + /** + * Creates the central panel of the frame. + * + * @return The central panel of the frame + */ private JComponent createCenterPanel() { JPanel centerPanel = new JPanel(new BorderLayout()); centerPanel.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6)); @@ -132,6 +153,11 @@ public class SwingInterface implements Interface { return centerPanel; } + /** + * Creates the menu bar of the frame. + * + * @return The menu bar of the frame + */ private JMenuBar createMenubar() { JMenuBar menubar = new JMenuBar(); @@ -144,6 +170,11 @@ public class SwingInterface implements Interface { return menubar; } + /** + * Creates the tool bar of the frame. + * + * @return The tool bar of the frame + */ private JToolBar createToolbar() { JToolBar toolbar = new JToolBar(); -- 2.7.4