X-Git-Url: https://git.pterodactylus.net/?p=jkeytool.git;a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjkeytool%2Fgui%2Fswing%2FKeyStorePanel.java;h=dfc9c6e88ef6bc2744e1ac53de5c7ce0d0486c21;hp=add75818cdcd0c49e10cef40e309a643122feea3;hb=c068e1ba844e45f1d2b1a5e9f486491db2ced75b;hpb=4914c97e6d1993d822b98262264c23f58a2594d2 diff --git a/src/net/pterodactylus/jkeytool/gui/swing/KeyStorePanel.java b/src/net/pterodactylus/jkeytool/gui/swing/KeyStorePanel.java index add7581..dfc9c6e 100644 --- a/src/net/pterodactylus/jkeytool/gui/swing/KeyStorePanel.java +++ b/src/net/pterodactylus/jkeytool/gui/swing/KeyStorePanel.java @@ -20,15 +20,9 @@ package net.pterodactylus.jkeytool.gui.swing; import java.awt.BorderLayout; -import java.awt.event.ActionEvent; import java.security.KeyStore; -import javax.swing.AbstractAction; -import javax.swing.Action; import javax.swing.JPanel; -import javax.swing.JToolBar; - -import net.pterodactylus.util.swing.StatusBar; /** * TODO @@ -40,15 +34,6 @@ public class KeyStorePanel extends JPanel { /** The displayed key store. */ private final KeyStore keyStore; - /** The tool bar. */ - private final JToolBar toolBar = new JToolBar(); - - /** The status bar. */ - private final StatusBar statusBar = new StatusBar(); - - /** The action to create a new key. */ - private Action createKeyAction; - /** * Creates a new key store panel that displays and controls the given key * store. @@ -59,50 +44,21 @@ public class KeyStorePanel extends JPanel { public KeyStorePanel(KeyStore keyStore) { super(new BorderLayout()); this.keyStore = keyStore; - constructActions(); constructPanel(); - statusBar.setText(keyStore.getType() + " Key Store"); } // // PRIVATE ACTIONS // - /** - * Executed by {@link #createKeyAction}. - */ - private void createKey() { - /* TODO */ - } - // // PRIVATE METHODS // /** - * Constructs all used actions. - */ - private void constructActions() { - createKeyAction = new AbstractAction("Create Key") { - - /** - * {@inheritDoc} - */ - @SuppressWarnings("synthetic-access") - public void actionPerformed(ActionEvent actionEvent) { - createKey(); - } - }; - } - - /** * Constructs the main panel. */ private void constructPanel() { - toolBar.add(createKeyAction); - - add(toolBar, BorderLayout.PAGE_START); - add(statusBar, BorderLayout.PAGE_END); } }