From 8c170d30403596faaf038929c9712ef6d8132e2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 28 Jan 2009 00:03:58 +0100 Subject: [PATCH] Add tool bar. --- src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java b/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java index 8a79747..7574e4a 100644 --- a/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java +++ b/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java @@ -34,6 +34,7 @@ import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JPanel; import javax.swing.JTabbedPane; +import javax.swing.JToolBar; import net.pterodactylus.jkeytool.core.Core; import net.pterodactylus.jkeytool.gui.Interface; @@ -112,6 +113,7 @@ public class SwingInterface implements Interface { private void createFrame() { mainFrame.setJMenuBar(createMenubar()); + mainFrame.getContentPane().add(createToolbar(), BorderLayout.PAGE_START); mainFrame.getContentPane().add(createCenterPanel(), BorderLayout.CENTER); mainFrame.getContentPane().add(statusBar, BorderLayout.PAGE_END); mainFrame.pack(); @@ -138,6 +140,15 @@ public class SwingInterface implements Interface { return menubar; } + private JToolBar createToolbar() { + JToolBar toolbar = new JToolBar(); + + toolbar.add(createKeyStoreAction); + toolbar.add(quitAction); + + return toolbar; + } + // // INTERFACE Interface // -- 2.7.4