Removed unused test panels.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@435 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
//
|
||||
// $Id: ChatPanel.java,v 1.1 2001/08/07 18:29:18 shaper Exp $
|
||||
|
||||
package com.threerings.miso.viewer;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
import com.threerings.miso.Log;
|
||||
|
||||
public class ChatPanel extends JPanel
|
||||
{
|
||||
public void paintComponent (Graphics g)
|
||||
{
|
||||
super.paintComponent(g);
|
||||
|
||||
g.setColor(Color.blue);
|
||||
Rectangle bounds = getBounds();
|
||||
g.fillRect(0, 0, bounds.width, bounds.height);
|
||||
|
||||
Log.info("chat panel [bounds=" + bounds + "].");
|
||||
}
|
||||
|
||||
public Dimension getPreferredSize ()
|
||||
{
|
||||
return new Dimension(200, 150);
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
//
|
||||
// $Id: ManagementPanel.java,v 1.1 2001/08/07 18:29:18 shaper Exp $
|
||||
|
||||
package com.threerings.miso.viewer;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
import com.threerings.miso.Log;
|
||||
|
||||
public class ManagementPanel extends JPanel
|
||||
{
|
||||
public void paintComponent (Graphics g)
|
||||
{
|
||||
super.paintComponent(g);
|
||||
|
||||
g.setColor(Color.red);
|
||||
Rectangle bounds = getBounds();
|
||||
g.fillRect(0, 0, bounds.width, bounds.height);
|
||||
|
||||
Log.info("mgmt panel [bounds=" + bounds + "].");
|
||||
}
|
||||
|
||||
public Dimension getPreferredSize ()
|
||||
{
|
||||
return new Dimension(200, 300);
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
//
|
||||
// $Id: StatusPanel.java,v 1.1 2001/08/07 18:29:18 shaper Exp $
|
||||
|
||||
package com.threerings.miso.viewer;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
import com.threerings.miso.Log;
|
||||
|
||||
public class StatusPanel extends JPanel
|
||||
{
|
||||
public void paintComponent (Graphics g)
|
||||
{
|
||||
super.paintComponent(g);
|
||||
|
||||
g.setColor(Color.yellow);
|
||||
Rectangle bounds = getBounds();
|
||||
g.fillRect(0, 0, bounds.width, bounds.height);
|
||||
|
||||
Log.info("status panel [bounds=" + bounds + "].");
|
||||
}
|
||||
|
||||
public Dimension getPreferredSize ()
|
||||
{
|
||||
return new Dimension(200, 150);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ViewerFrame.java,v 1.19 2001/10/11 00:41:27 shaper Exp $
|
||||
// $Id: ViewerFrame.java,v 1.20 2001/10/11 16:20:06 shaper Exp $
|
||||
|
||||
package com.threerings.miso.viewer;
|
||||
|
||||
@@ -59,21 +59,6 @@ class ViewerFrame extends JFrame implements WindowListener
|
||||
new ViewerSceneViewPanel(_ctx, spritemgr, sprite);
|
||||
top.add(svpanel, GroupLayout.FIXED);
|
||||
|
||||
// create a sub-panel to hold the side panels
|
||||
JPanel sub = new JPanel();
|
||||
gl = new VGroupLayout(GroupLayout.STRETCH);
|
||||
gl.setOffAxisPolicy(GroupLayout.STRETCH);
|
||||
gl.setJustification(GroupLayout.TOP);
|
||||
sub.setLayout(gl);
|
||||
|
||||
// add the various side-panels
|
||||
sub.add(new StatusPanel(), GroupLayout.FIXED);
|
||||
sub.add(new ManagementPanel());
|
||||
sub.add(new ChatPanel());
|
||||
|
||||
// add the sub-panel to the main panel
|
||||
top.add(sub);
|
||||
|
||||
// add the main panel to the frame
|
||||
getContentPane().add(top, BorderLayout.CENTER);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user