Fix Java 8 compatibility

This commit is contained in:
Reinhard Pointner 2019-02-26 12:55:03 +07:00
parent e5f3596347
commit 37bce60df2
1 changed files with 1 additions and 1 deletions

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());