* fix Border UI issues for Ubuntu App

This commit is contained in:
Reinhard Pointner 2015-03-24 12:39:05 +00:00
parent fa22890573
commit 9ab47c4b9e
1 changed files with 7 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import static java.awt.event.InputEvent.*;
import static java.awt.event.KeyEvent.*;
import static javax.swing.KeyStroke.*;
import static javax.swing.ScrollPaneConstants.*;
import static net.filebot.Settings.*;
import static net.filebot.ui.NotificationLogging.*;
import java.awt.Color;
@ -72,9 +73,14 @@ public class MainFrame extends JFrame {
}
JScrollPane selectionListScrollPane = new JScrollPane(selectionList, VERTICAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_NEVER);
selectionListScrollPane.setBorder(new CompoundBorder(new ShadowBorder(), new LineBorder(new Color(0x809DB8), 1, false)));
selectionListScrollPane.setOpaque(false);
if (isMacApp()) {
selectionListScrollPane.setBorder(new CompoundBorder(new ShadowBorder(), new LineBorder(new Color(0x809DB8), 1, false)));
} else {
selectionListScrollPane.setBorder(new CompoundBorder(new ShadowBorder(), selectionListScrollPane.getBorder()));
}
headerPanel.getTitleLabel().setBorder(new EmptyBorder(8, 90, 10, 0));
JComponent c = (JComponent) getContentPane();