X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjkeytool%2Fgui%2Fswing%2FKeyStorePanel.java;h=48ea691d8af9a780a3c665b10d4aed49c9c81efc;hb=0024383ab6e99742fdf45ff5390ef144c3bfc4b1;hp=4496318430be937d11a22063c292ed869dc5fb75;hpb=e5e4a88c5a229c289d3b43f0d0b1d4b4df91c9fb;p=jkeytool.git diff --git a/src/net/pterodactylus/jkeytool/gui/swing/KeyStorePanel.java b/src/net/pterodactylus/jkeytool/gui/swing/KeyStorePanel.java index 4496318..48ea691 100644 --- a/src/net/pterodactylus/jkeytool/gui/swing/KeyStorePanel.java +++ b/src/net/pterodactylus/jkeytool/gui/swing/KeyStorePanel.java @@ -20,13 +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; /** * TODO @@ -38,12 +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 action to create a new key. */ - private Action createKeyAction; - /** * Creates a new key store panel that displays and controls the given key * store. @@ -62,31 +52,27 @@ public class KeyStorePanel extends JPanel { // 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); } }