JScrollPane

Palette category
Swing
Palette bean
JScrollPane
Project
JFC class libraries
Package
com.sun.java.swing
Type
JScrollPane

Use a JScrollPane bean to provide a pane with scroll bars. This enables you to define a pane that is not always completely within view. You can place one component in the scroll pane. If you want multiple components within the scroll pane, add a JPanel bean to the scroll pane and place the components on the panel.

Use a ScrollPane bean, rather than a JScrollPane bean, if you want to use AWT components in the pane. Although Swing and AWT beans can be mixed, it is inadvisable.


Related procedures
Adding a Pane or Panel

Related references
Pane and Panel Beans
Beans for Visual Composition