Testing Java Scroll Panes

A scroll pane in Java is a container that holds a single child component. If the scroll pane is smaller than the child component, you can scroll vertically and horizontally to see all parts of that component.

The state of the scroll bars in a scroll pane is managed by internal objects that implement the Adjustable interface. To manipulate the scroll bars, you must first get an Adjustable object, and then use Adjustable and scroll bar methods to move them.

To test scroll bars in a scroll pane, use invokeMethods, a method that allows you to perform nested calls inside Java to access Adjustable objects.