1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-27 12:46:22 +01:00

Fix the launcher frame starting too small on some systems.

Fixes #83
This commit is contained in:
sk89q 2015-08-03 13:44:25 -07:00
parent 40555cce59
commit 64ee00bd1d

View File

@ -68,9 +68,9 @@ public class LauncherFrame extends JFrame {
instancesModel = new InstanceTableModel(launcher.getInstances());
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
setSize(700, 450);
setMinimumSize(new Dimension(400, 300));
initComponents();
pack();
setLocationRelativeTo(null);
SwingHelper.setIconImage(this, Launcher.class, "icon.png");
@ -107,7 +107,7 @@ public class LauncherFrame extends JFrame {
splitPane.setDividerLocation(200);
splitPane.setDividerSize(4);
splitPane.setOpaque(false);
container.add(splitPane, "grow, wrap, span 5, gapbottom unrel");
container.add(splitPane, "grow, wrap, span 5, gapbottom unrel, w null:680, h null:350");
SwingHelper.flattenJSplitPane(splitPane);
container.add(refreshButton);
container.add(updateCheck);