A scroll pane is used to display a child component with a built-in scrolling capability. Scroll bars in the horizontal and vertical directions are automatically provided when the child compoent's size is too large to fit on the available viewport. Tabbed panes allow developers to stack pages of information into a single point of reference. Each page in a tabbed pane is implemented as a panel. Further Java UI components are added to the panel.
Scroll bars contain a scroll knob that slides along a bar attached with small end-buttons.
This applet demonstrates the JScrollBar class, and shows how properties of the scrollbar change when the scroll knob value is adjusted. Using the text area component, multiple lines of text can be displayed and edited. This applet exercises the capabilities of the class JTextArea. The contents of the text area may be manipulated by using the text field and buttons displayed. A message may be typed in the text field box and then positioned using the button operations.