Moved SafeScrollPane back
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1563 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
//
|
||||
// $Id: ConfigEditorPanel.java,v 1.2 2002/07/09 17:49:12 ray Exp $
|
||||
// $Id: ConfigEditorPanel.java,v 1.3 2002/07/09 21:13:20 ray Exp $
|
||||
|
||||
package com.threerings.admin.client;
|
||||
|
||||
import javax.swing.JTabbedPane;
|
||||
import javax.swing.event.AncestorEvent;
|
||||
|
||||
import com.samskivert.swing.SafeScrollPane;
|
||||
import com.samskivert.swing.event.AncestorAdapter;
|
||||
import com.samskivert.util.StringUtil;
|
||||
|
||||
import com.threerings.media.SafeScrollPane;
|
||||
|
||||
import com.threerings.presents.util.PresentsContext;
|
||||
|
||||
import com.threerings.admin.Log;
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// $Id: SafeScrollPane.java,v 1.3 2002/07/09 21:13:20 ray 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user