+ mainFrame.addWindowListener(new WindowAdapter() {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ @SuppressWarnings("synthetic-access")
+ public void windowClosing(WindowEvent windowEvent) {
+ quit();
+ }
+ });
+ }
+
+ /**
+ * Creates the central panel of the frame.
+ *
+ * @return The central panel of the frame
+ */
+ private JComponent createCenterPanel() {
+ JPanel centerPanel = new JPanel(new BorderLayout());
+ centerPanel.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6));
+
+ centerPanel.add(tabPane, BorderLayout.CENTER);
+
+ return centerPanel;
+ }
+
+ /**
+ * Creates the menu bar of the frame.
+ *
+ * @return The menu bar of the frame
+ */
+ private JMenuBar createMenubar() {
+ JMenuBar menubar = new JMenuBar();
+
+ JMenu fileMenu = new I18nMenu(i18n, "jkeytool.menu.file");
+ menubar.add(fileMenu);
+ fileMenu.add(createKeyStoreAction);
+ fileMenu.addSeparator();
+ fileMenu.add(quitAction);
+
+ return menubar;
+ }
+
+ /**
+ * Creates the tool bar of the frame.
+ *
+ * @return The tool bar of the frame
+ */
+ private JToolBar createToolbar() {
+ JToolBar toolbar = new JToolBar();
+
+ toolbar.add(createKeyStoreAction);
+ toolbar.add(quitAction);
+
+ return toolbar;