1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-13 12:55:00 -05:00

Fix Java 8 compatibility

This commit is contained in:
Reinhard Pointner 2019-02-26 12:55:03 +07:00
parent e5f3596347
commit 37bce60df2

View File

@ -188,7 +188,7 @@ public class MainFrame extends JFrame {
private static final int SELECTDELAY_ON_DRAG_OVER = 300;
public PanelSelectionList(List<PanelBuilder> builders) {
super(builders.toArray(PanelBuilder[]::new));
super(builders.toArray());
setCellRenderer(new PanelCellRenderer());
setPrototypeCellValue(builders.stream().max(comparingInt(p -> p.getName().length())).get());