From 64ee00bd1ddb8743d09af1c2628460b4935d49f6 Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 3 Aug 2015 13:44:25 -0700 Subject: [PATCH] Fix the launcher frame starting too small on some systems. Fixes #83 --- .../main/java/com/skcraft/launcher/dialog/LauncherFrame.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java b/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java index df53f18..dd2c02a 100644 --- a/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java +++ b/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java @@ -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);