diff --git a/source/net/filebot/ui/MainFrame.java b/source/net/filebot/ui/MainFrame.java index 14b39401..5a43498c 100644 --- a/source/net/filebot/ui/MainFrame.java +++ b/source/net/filebot/ui/MainFrame.java @@ -188,7 +188,7 @@ public class MainFrame extends JFrame { private static final int SELECTDELAY_ON_DRAG_OVER = 300; public PanelSelectionList(List builders) { - super(builders.toArray(PanelBuilder[]::new)); + super(builders.toArray()); setCellRenderer(new PanelCellRenderer()); setPrototypeCellValue(builders.stream().max(comparingInt(p -> p.getName().length())).get());