//
// $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;
    }
}

@@ -32,33 +32,33 @@
 v 1.
-3
+4
  2002/
+1
 0
-7
 /0
-9 21:13:20 ray
+6 20:57:36 mdb
  Exp
@@ -302,16 +302,58 @@
 lPane%0A%7B%0A
+    public SafeScrollPane ()%0A    %7B%0A    %7D%0A%0A
     publ

Allow a safe scroll pane to be constructed without its viewport view (which should be set later via setViewportView()).