Class ScrollBar

java.lang.Object
All Implemented Interfaces:
Styleable, EventTarget, Skinnable

public class ScrollBar extends Control
Either a horizontal or vertical bar with increment and decrement buttons and a "thumb" with which the user can interact. Typically not used alone but used for building up more complicated controls such as the ScrollPane and ListView.

ScrollBar sets focusTraversable to false.

This example creates a vertical ScrollBar:

 ScrollBar s1 = new ScrollBar();
 s1.setOrientation(Orientation.VERTICAL);
Image of the ScrollBar control
Since:
JavaFX 2.0