moved back to narya/media
git-svn-id: https://samskivert.googlecode.com/svn/trunk@792 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,27 +0,0 @@
|
|||||||
//
|
|
||||||
// $Id: SafeScrollPane.java,v 1.1 2002/07/09 17:48:23 ray Exp $
|
|
||||||
|
|
||||||
package com.samskivert.swing;
|
|
||||||
|
|
||||||
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