Class ScrolledViewport

java.lang.Object
games.stendhal.client.gui.ScrolledViewport

public class ScrolledViewport extends Object
A JScrollPane variant that hides the child components border completely when the scroll bars are not shown.
  • Constructor Details

    • ScrolledViewport

      public ScrolledViewport(JComponent view)
      Create a new ScrolledViewport.
      Parameters:
      view - child component. The border that view has at the moment when the ScrolledViewport is created is used when ant least one of the scroll bars is visible.
  • Method Details

    • getComponent

      public JComponent getComponent()
      Get the enclosing component.
      Returns:
      JScrollPane containing the view
    • setScrollingSpeed

      public void setScrollingSpeed(int speed)
      Set the scrolling speed when using the mouse wheel.
      Parameters:
      speed -