Minor refactoring and UI optimizations

This commit is contained in:
Reinhard Pointner 2016-08-11 10:45:43 +08:00
parent e6a36a2e88
commit 49e82b7824
1 changed files with 1 additions and 1 deletions

View File

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