Add status bar.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 26 Jan 2009 23:57:38 +0000 (00:57 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 26 Jan 2009 23:57:38 +0000 (00:57 +0100)
src/net/pterodactylus/jkeytool/gui/swing/KeyStorePanel.java

index 4496318..3c064d6 100644 (file)
@@ -28,6 +28,8 @@ import javax.swing.Action;
 import javax.swing.JPanel;
 import javax.swing.JToolBar;
 
 import javax.swing.JPanel;
 import javax.swing.JToolBar;
 
+import net.pterodactylus.util.swing.StatusBar;
+
 /**
  * TODO
  *
 /**
  * TODO
  *
@@ -41,6 +43,9 @@ public class KeyStorePanel extends JPanel {
        /** The tool bar. */
        private final JToolBar toolBar = new JToolBar();
 
        /** 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;
 
        /** The action to create a new key. */
        private Action createKeyAction;
 
@@ -56,6 +61,7 @@ public class KeyStorePanel extends JPanel {
                this.keyStore = keyStore;
                constructActions();
                constructPanel();
                this.keyStore = keyStore;
                constructActions();
                constructPanel();
+               statusBar.setText(keyStore.getType() + " Key Store");
        }
 
        //
        }
 
        //
@@ -87,6 +93,7 @@ public class KeyStorePanel extends JPanel {
                toolBar.add(createKeyAction);
 
                add(toolBar, BorderLayout.PAGE_START);
                toolBar.add(createKeyAction);
 
                add(toolBar, BorderLayout.PAGE_START);
+               add(statusBar, BorderLayout.PAGE_END);
        }
 
 }
        }
 
 }