Initial working version of many miso classes. The beginnings of some

of our tile- and scene-related machinations.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@44 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-07-12 22:38:03 +00:00
parent c8af354d2d
commit 672fecf682
16 changed files with 848 additions and 0 deletions
@@ -0,0 +1,18 @@
//
// $Id: SwingUtil.java,v 1.1 2001/07/12 22:38:03 shaper Exp $
package com.threerings.cocktail.miso.util;
import java.awt.*;
public class SwingUtil
{
public static void centerFrame (Frame frame)
{
Toolkit tk = frame.getToolkit();
Dimension ss = tk.getScreenSize();
int width = frame.getWidth(), height = frame.getHeight();
frame.setBounds((ss.width-width)/2, (ss.height-height)/2,
width, height);
}
}