import javax.swing.JPanel;
import javax.swing.JToolBar;
+import net.pterodactylus.util.swing.StatusBar;
+
/**
* TODO
*
/** 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;
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") {
};
}
+ /**
+ * Constructs the main panel.
+ */
private void constructPanel() {
toolBar.add(createKeyAction);
add(toolBar, BorderLayout.PAGE_START);
+ add(statusBar, BorderLayout.PAGE_END);
}
}