//
// $Id: ScrollingFrame.java,v 1.1 2002/02/17 23:48:37 mdb Exp $

package com.threerings.miso.scene;

import java.awt.Color;
import java.awt.Component;
import java.awt.GraphicsConfiguration;

import javax.swing.JFrame;

import com.samskivert.swing.GroupLayout;
import com.samskivert.swing.VGroupLayout;

/**
 * The main application window.
 */
public class ScrollingFrame extends JFrame
{
    /**
     * Creates a frame in which the scrolling test app can operate.
     */
    public ScrollingFrame (GraphicsConfiguration gc)
    {
	super(gc);

        // set up the frame options
        setTitle("Scene scrolling test");
        // setUndecorated(true);
        setIgnoreRepaint(true);
        setResizable(false);
        setDefaultCloseOperation(EXIT_ON_CLOSE);

        // center the scene view within the frame
        GroupLayout gl = new VGroupLayout();
        gl.setJustification(GroupLayout.CENTER);
        gl.setOffAxisJustification(GroupLayout.CENTER);
        getContentPane().setLayout(gl);

        // set the frame and content panel background to black
        setBackground(Color.black);
        getContentPane().setBackground(Color.black);
    }

    /**
     * Sets the panel displayed by this frame.
     */
    public void setPanel (Component panel)
    {
        // if we had an old panel, remove it
        if (_panel != null) {
            getContentPane().remove(_panel);
        }    

        // now add the new one
        _panel = panel;
	getContentPane().add(_panel);
    }

    protected Component _panel;
}

@@ -28,17 +28,17 @@
 ava,v 1.
-1
+2
  2002/02
@@ -43,18 +43,18 @@
 02/1
-7 23:48:37
+9 07:21:33
  mdb
@@ -93,24 +93,54 @@
 iso.scene;%0A%0A
+import java.awt.BorderLayout;%0A
 import java.
@@ -249,92 +249,8 @@
 e;%0A%0A
-import com.samskivert.swing.GroupLayout;%0Aimport com.samskivert.swing.VGroupLayout;%0A%0A
 /**%0A
@@ -712,249 +712,8 @@
 );%0A%0A
-        // center the scene view within the frame%0A        GroupLayout gl = new VGroupLayout();%0A        gl.setJustification(GroupLayout.CENTER);%0A        gl.setOffAxisJustification(GroupLayout.CENTER);%0A        getContentPane().setLayout(gl);%0A%0A
     
@@ -1169,16 +1169,16 @@
  panel;%0A
-
 %09getCont
@@ -1193,24 +1193,45 @@
 ).add(_panel
+, BorderLayout.CENTER
 );%0A    %7D%0A%0A  

Use a border layout.