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
This commit is contained in:
@@ -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;
|
package com.threerings.micasa.simulator.client;
|
||||||
|
|
||||||
@@ -68,11 +68,9 @@ public class SimulatorApp
|
|||||||
|
|
||||||
public void run ()
|
public void run ()
|
||||||
{
|
{
|
||||||
// size and display the window
|
// configure and display the main frame
|
||||||
int wid = getInt(System.getProperty("width"), 800);
|
|
||||||
int hei = getInt(System.getProperty("height"), 600);
|
|
||||||
JFrame frame = _frame.getFrame();
|
JFrame frame = _frame.getFrame();
|
||||||
frame.setSize(wid, hei);
|
frame.pack();
|
||||||
SwingUtil.centerWindow(frame);
|
SwingUtil.centerWindow(frame);
|
||||||
frame.show();
|
frame.show();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user