Some further FrameManager wrangling and a proper bridge for managed applets.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@32 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2006-08-25 00:34:18 +00:00
parent 22b867bb61
commit 9ed3f62af7
8 changed files with 140 additions and 34 deletions
@@ -74,7 +74,7 @@ public class PathViz extends MediaPanel
public static void main (String[] args)
{
ManagedJFrame frame = new ManagedJFrame("Path viz");
FrameManager fmgr = FrameManager.newInstance(frame, frame);
FrameManager fmgr = FrameManager.newInstance(frame);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setContentPane(new PathViz(fmgr));
@@ -26,17 +26,17 @@ import java.awt.Component;
import java.awt.GraphicsConfiguration;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import com.samskivert.swing.VGroupLayout;
import com.threerings.media.ManagedJFrame;
import com.threerings.media.SafeScrollPane;
/**
* The main application window.
*/
public class ScrollingFrame extends JFrame
public class ScrollingFrame extends ManagedJFrame
{
/**
* Creates a frame in which the scrolling test app can operate.
@@ -88,7 +88,7 @@ public class ScrollingTestApp
_frame = new ScrollingFrame(gc);
// set up our frame manager
_framemgr = FrameManager.newInstance(_frame, _frame);
_framemgr = FrameManager.newInstance(_frame);
// we don't need to configure anything
ResourceManager rmgr = new ResourceManager("rsrc");
@@ -81,7 +81,7 @@ public class ViewerApp
// create the window
_frame = new ViewerFrame(gc);
_framemgr = FrameManager.newInstance(_frame, _frame);
_framemgr = FrameManager.newInstance(_frame);
// we don't need to configure anything
ResourceManager rmgr = new ResourceManager("rsrc");
@@ -33,10 +33,12 @@ import javax.swing.JMenuBar;
import com.samskivert.swing.util.MenuUtil;
import com.threerings.media.ManagedJFrame;
/**
* The viewer frame is the main application window.
*/
public class ViewerFrame extends JFrame
public class ViewerFrame extends ManagedJFrame
{
/**
* Creates a frame in which the viewer application can operate.