import net.pterodactylus.jkeytool.core.Core;
import net.pterodactylus.jkeytool.gui.Interface;
import net.pterodactylus.jkeytool.main.Main;
+import net.pterodactylus.util.swing.StatusBar;
/**
* TODO
/** The main frame. */
private JFrame mainFrame = new JFrame("jkeytool " + Main.getVersion());
+ /** The status bar. */
+ private StatusBar statusBar = new StatusBar();
+
/** Loaded key stores and their panels. */
private final Map<KeyStore, KeyStorePanel> keyStores = new HashMap<KeyStore, KeyStorePanel>();
+ public SwingInterface() {
+ createFrame();
+ }
+
+ //
+ // PRIVATE METHODS
+ //
+
+ private void createFrame() {
+ mainFrame.getContentPane().add(statusBar, BorderLayout.PAGE_END);
+ mainFrame.pack();
+ }
+
//
// INTERFACE Interface
//
*/
public void start() {
mainFrame.setVisible(true);
+ statusBar.setText("jkeytool startup complete.");
core.loadKeyStore(new File("client.p12"));
}
public void keyStoreLoaded(File keyStoreFile, KeyStore keyStore) {
KeyStorePanel keyStorePanel = new KeyStorePanel(keyStore);
keyStores.put(keyStore, keyStorePanel);
- mainFrame.getContentPane().add(keyStorePanel);
}
/**