From 49e82b78247f748119a00353719686b4ab3104ac Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 11 Aug 2016 10:45:43 +0800 Subject: [PATCH] Minor refactoring and UI optimizations --- source/net/filebot/ui/MainFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/ui/MainFrame.java b/source/net/filebot/ui/MainFrame.java index 190b4049..1fba184d 100644 --- a/source/net/filebot/ui/MainFrame.java +++ b/source/net/filebot/ui/MainFrame.java @@ -181,8 +181,8 @@ public class MainFrame extends JFrame { public PanelSelectionList(PanelBuilder[] builders) { super(builders); - setPrototypeCellValue(stream(builders).max(comparingInt(p -> p.getName().length())).get()); setCellRenderer(new PanelCellRenderer()); + setPrototypeCellValue(stream(builders).max(comparingInt(p -> p.getName().length())).get()); setSelectionMode(ListSelectionModel.SINGLE_SELECTION); setBorder(new EmptyBorder(4, 5, 4, 5));