Plugin configuration panel is now scrollable
This commit is contained in:
@@ -131,6 +131,7 @@ public class ConfigPanel extends PluginPanel
|
|||||||
//Make the panel scrollable
|
//Make the panel scrollable
|
||||||
scrollPane = new JScrollPane(panel);
|
scrollPane = new JScrollPane(panel);
|
||||||
scrollPane.setBorder(BorderFactory.createEmptyBorder());
|
scrollPane.setBorder(BorderFactory.createEmptyBorder());
|
||||||
|
scrollPane.setPreferredSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT));
|
||||||
scrollPane.getVerticalScrollBar().setUnitIncrement(16); //Otherwise scrollspeed is really slow
|
scrollPane.getVerticalScrollBar().setUnitIncrement(16); //Otherwise scrollspeed is really slow
|
||||||
return scrollPane;
|
return scrollPane;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user