X-Git-Url: https://git.pterodactylus.net/?p=jkeytool.git;a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjkeytool%2Fgui%2Fswing%2FSwingInterface.java;h=7574e4a6b9187a6c9a89f41aea43c2bac7bfe2b3;hp=8a79747175c4ba65c44b80a079f12bd81bf52db7;hb=8c170d30403596faaf038929c9712ef6d8132e2a;hpb=b078eec37fb174bd4c76d82d27b0406124d09447 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 //