mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 23:05:03 -05:00
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) {
|
public PanelSelectionList(PanelBuilder[] builders) {
|
||||||
super(builders);
|
super(builders);
|
||||||
|
|
||||||
setPrototypeCellValue(stream(builders).max(comparingInt(p -> p.getName().length())).get());
|
|
||||||
setCellRenderer(new PanelCellRenderer());
|
setCellRenderer(new PanelCellRenderer());
|
||||||
|
setPrototypeCellValue(stream(builders).max(comparingInt(p -> p.getName().length())).get());
|
||||||
|
|
||||||
setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
||||||
setBorder(new EmptyBorder(4, 5, 4, 5));
|
setBorder(new EmptyBorder(4, 5, 4, 5));
|
||||||
|
Loading…
Reference in New Issue
Block a user