From ab2eda7d2c2eecaaf73c4f37a0680702e2692146 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 27 Aug 2014 15:04:55 +0000 Subject: [PATCH] * fix misalignment --- source/net/filebot/ui/HeaderPanel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/ui/HeaderPanel.java b/source/net/filebot/ui/HeaderPanel.java index 75c5559a..2cd4a19a 100644 --- a/source/net/filebot/ui/HeaderPanel.java +++ b/source/net/filebot/ui/HeaderPanel.java @@ -1,5 +1,7 @@ package net.filebot.ui; +import static javax.swing.BorderFactory.*; + import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; @@ -11,7 +13,6 @@ import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SwingConstants; -import javax.swing.border.EmptyBorder; import net.filebot.util.ui.GradientStyle; import net.filebot.util.ui.notification.SeparatorBorder; @@ -37,7 +38,7 @@ public class HeaderPanel extends JComponent { titleLabel.setForeground(new Color(0x101010)); titleLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24)); - centerPanel.setBorder(new EmptyBorder(0, 78, 0, 0)); + centerPanel.setBorder(createEmptyBorder()); centerPanel.add(titleLabel, BorderLayout.CENTER); add(centerPanel, BorderLayout.CENTER);