From: David ‘Bombe’ Roden Date: Mon, 27 May 2013 04:28:19 +0000 (+0200) Subject: Add border around tabbed pane. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=be404ca81a417e6cd3a5f4ca1a8a9696d698a58f;p=sonitus.git Add border around tabbed pane. --- diff --git a/src/main/java/net/pterodactylus/sonitus/gui/MainWindow.java b/src/main/java/net/pterodactylus/sonitus/gui/MainWindow.java index cdd0776..e828fcd 100644 --- a/src/main/java/net/pterodactylus/sonitus/gui/MainWindow.java +++ b/src/main/java/net/pterodactylus/sonitus/gui/MainWindow.java @@ -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));