* fix misalignment

This commit is contained in:
Reinhard Pointner 2014-08-27 15:04:55 +00:00
parent 082e25852d
commit ab2eda7d2c
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,7 @@
package net.filebot.ui; package net.filebot.ui;
import static javax.swing.BorderFactory.*;
import java.awt.BorderLayout; import java.awt.BorderLayout;
import java.awt.Color; import java.awt.Color;
import java.awt.Font; import java.awt.Font;
@ -11,7 +13,6 @@ import javax.swing.JComponent;
import javax.swing.JLabel; import javax.swing.JLabel;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.SwingConstants; import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import net.filebot.util.ui.GradientStyle; import net.filebot.util.ui.GradientStyle;
import net.filebot.util.ui.notification.SeparatorBorder; import net.filebot.util.ui.notification.SeparatorBorder;
@ -37,7 +38,7 @@ public class HeaderPanel extends JComponent {
titleLabel.setForeground(new Color(0x101010)); titleLabel.setForeground(new Color(0x101010));
titleLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24)); 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); centerPanel.add(titleLabel, BorderLayout.CENTER);
add(centerPanel, BorderLayout.CENTER); add(centerPanel, BorderLayout.CENTER);