Minor refactoring and UI optimizations
This commit is contained in:
parent
e6a36a2e88
commit
49e82b7824
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue