+ /** The main frame. */
+ private JFrame mainFrame = new JFrame("jkeytool " + Main.getVersion());
+
+ /** The tab pane. */
+ private JTabbedPane tabPane = new JTabbedPane();
+
+ /** 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(createCenterPanel(), BorderLayout.CENTER);
+ mainFrame.getContentPane().add(statusBar, BorderLayout.PAGE_END);
+ mainFrame.pack();
+ }
+
+ private JComponent createCenterPanel() {
+ JPanel centerPanel = new JPanel(new BorderLayout());
+ centerPanel.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6));
+
+ centerPanel.add(tabPane, BorderLayout.CENTER);
+
+ return centerPanel;
+ }
+