+ public SwingInterface() {
+ createActions();
+ createFrame();
+ }
+
+ //
+ // ACTIONS
+ //
+
+ private void createKeyStore() {
+ }
+
+ private void quit() {
+ System.exit(0);
+ }
+
+ //
+ // PRIVATE METHODS
+ //
+
+ private void createActions() {
+ createKeyStoreAction = new I18nAction("jkeytool.action.createKeyStore") {
+
+ @SuppressWarnings("synthetic-access")
+ public void actionPerformed(ActionEvent actionEvent) {
+ createKeyStore();
+ }
+ };
+ quitAction = new I18nAction("jkeytool.action.quit") {
+
+ /**
+ * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
+ */
+ @SuppressWarnings("synthetic-access")
+ public void actionPerformed(ActionEvent actionEvent) {
+ quit();
+ }
+ };
+ }
+
+ 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;
+ }
+