From 441e21d08c67f2fde474dda5e28945f897c20be6 Mon Sep 17 00:00:00 2001 From: Walter Korman Date: Thu, 9 May 2002 04:39:12 +0000 Subject: [PATCH] Pack the main frame to fit its components rather than referencing width and height property values. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1351 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/micasa/simulator/client/SimulatorApp.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/java/com/threerings/micasa/simulator/client/SimulatorApp.java b/src/java/com/threerings/micasa/simulator/client/SimulatorApp.java index e64823e54..57218186c 100644 --- a/src/java/com/threerings/micasa/simulator/client/SimulatorApp.java +++ b/src/java/com/threerings/micasa/simulator/client/SimulatorApp.java @@ -1,5 +1,5 @@ // -// $Id: SimulatorApp.java,v 1.6 2002/04/03 21:53:17 shaper Exp $ +// $Id: SimulatorApp.java,v 1.7 2002/05/09 04:39:12 shaper Exp $ package com.threerings.micasa.simulator.client; @@ -68,11 +68,9 @@ public class SimulatorApp public void run () { - // size and display the window - int wid = getInt(System.getProperty("width"), 800); - int hei = getInt(System.getProperty("height"), 600); + // configure and display the main frame JFrame frame = _frame.getFrame(); - frame.setSize(wid, hei); + frame.pack(); SwingUtil.centerWindow(frame); frame.show();