Add border around tabbed pane.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 27 May 2013 04:28:19 +0000 (06:28 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 27 May 2013 20:54:39 +0000 (22:54 +0200)
src/main/java/net/pterodactylus/sonitus/gui/MainWindow.java

index cdd0776..e828fcd 100644 (file)
@@ -20,6 +20,7 @@ package net.pterodactylus.sonitus.gui;
 import java.awt.BorderLayout;
 import java.awt.Dimension;
 import java.util.List;
+import javax.swing.BorderFactory;
 import javax.swing.JFrame;
 import javax.swing.JTabbedPane;
 import javax.swing.WindowConstants;
@@ -41,6 +42,7 @@ public class MainWindow extends JFrame {
        /** Creates a new main window. */
        public MainWindow() {
                super(String.format("Sonitus %s", Version.version()));
+               tabbedPane.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));
                getContentPane().add(tabbedPane, BorderLayout.CENTER);
                setSize(new Dimension(800, 450));