Updates to reflect cleanups.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1498 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-06-19 23:24:19 +00:00
parent 5a98d450a1
commit dd85c179f2
2 changed files with 5 additions and 12 deletions
@@ -1,5 +1,5 @@
//
// $Id: TestApp.java,v 1.13 2002/04/23 01:19:04 mdb Exp $
// $Id: TestApp.java,v 1.14 2002/06/19 23:24:19 mdb Exp $
package com.threerings.cast.builder;
@@ -8,7 +8,6 @@ import javax.swing.JFrame;
import com.samskivert.swing.util.SwingUtil;
import com.threerings.media.FrameManager;
import com.threerings.media.ImageManager;
import com.threerings.resource.ResourceManager;
@@ -28,8 +27,6 @@ public class TestApp
_frame.setSize(800, 600);
SwingUtil.centerWindow(_frame);
FrameManager framemgr = new FrameManager(_frame);
ResourceManager rmgr = new ResourceManager(
"rsrc", null, "config/resource/manager.properties");
ImageManager imgr = new ImageManager(rmgr, _frame);
@@ -40,7 +37,7 @@ public class TestApp
charmgr.setCharacterClass(MisoCharacterSprite.class);
// initialize the frame
((TestFrame)_frame).init(framemgr, charmgr, crepo);
((TestFrame)_frame).init(charmgr, crepo);
}
public void run ()
@@ -60,6 +57,5 @@ public class TestApp
}
}
/** The test frame. */
protected JFrame _frame;
}
@@ -1,12 +1,10 @@
//
// $Id: TestFrame.java,v 1.5 2002/04/23 01:19:04 mdb Exp $
// $Id: TestFrame.java,v 1.6 2002/06/19 23:24:19 mdb Exp $
package com.threerings.cast.builder;
import javax.swing.JFrame;
import com.threerings.media.FrameManager;
import com.threerings.cast.CharacterManager;
import com.threerings.cast.ComponentRepository;
@@ -20,9 +18,8 @@ public class TestFrame extends JFrame
setDefaultCloseOperation(EXIT_ON_CLOSE);
}
public void init (FrameManager framemgr, CharacterManager charmgr,
ComponentRepository crepo)
public void init (CharacterManager charmgr, ComponentRepository crepo)
{
getContentPane().add(new BuilderPanel(framemgr, charmgr, crepo));
getContentPane().add(new BuilderPanel(charmgr, crepo, "male/"));
}
}