Moved SafeScrollPane to com.samskivert.swing

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1561 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2002-07-09 17:49:12 +00:00
parent b93bcfaa11
commit 3ff952ee49
2 changed files with 2 additions and 29 deletions
@@ -1,27 +0,0 @@
//
// $Id: SafeScrollPane.java,v 1.1 2002/04/23 01:16:27 mdb Exp $
package com.threerings.media;
import java.awt.Component;
import javax.swing.JScrollPane;
import javax.swing.JViewport;
/**
* A scroll pane that is safe to use in frame managed views.
*/
public class SafeScrollPane extends JScrollPane
{
public SafeScrollPane (Component view)
{
super(view);
}
protected JViewport createViewport ()
{
JViewport vp = new JViewport();
vp.setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
return vp;
}
}