Package games.stendhal.client.gui
Class ScrolledViewport
java.lang.Object
games.stendhal.client.gui.ScrolledViewport
A JScrollPane variant that hides the child components border completely when
the scroll bars are not shown.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the enclosing component.void
setScrollingSpeed(int speed)
Set the scrolling speed when using the mouse wheel.
-
Constructor Details
-
ScrolledViewport
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
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
-
-