X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjkeytool%2Fgui%2Fswing%2FKeyStorePanel.java;h=add75818cdcd0c49e10cef40e309a643122feea3;hb=a3df2217d22c7a2d90320690126fd80dfb94a921;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..add7581 100644 --- a/src/net/pterodactylus/jkeytool/gui/swing/KeyStorePanel.java +++ b/src/net/pterodactylus/jkeytool/gui/swing/KeyStorePanel.java @@ -28,6 +28,8 @@ import javax.swing.Action; import javax.swing.JPanel; import javax.swing.JToolBar; +import net.pterodactylus.util.swing.StatusBar; + /** * TODO * @@ -41,6 +43,9 @@ public class KeyStorePanel extends JPanel { /** 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; @@ -56,20 +61,27 @@ public class KeyStorePanel extends JPanel { 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") { @@ -83,10 +95,14 @@ public class KeyStorePanel extends JPanel { }; } + /** + * Constructs the main panel. + */ private void constructPanel() { toolBar.add(createKeyAction); add(toolBar, BorderLayout.PAGE_START); + add(statusBar, BorderLayout.PAGE_END); } }