javax.swing
public class JScrollPane extends JComponent implements Accessible, ScrollPaneConstants
Property | Stored in | Bound? |
---|---|---|
columnHeader | scrollPane | yes |
columnHeaderView | columnHeader | no |
componentOrientation | scrollPane | yes |
horizontalScrollBar | scrollPane | yes |
horizontalScrollBarPolicy | scrollPane | yes |
layout | scrollPane | yes |
rowHeader | scrollPane | yes |
rowHeaderView | rowHeader | no |
validateRoot | scrollPane | no |
verticalScrollBar | scrollPane | yes |
verticalScrollBarPolicy | scrollPane | yes |
viewport | scrollPane | yes |
viewportBorder | scrollPane | yes |
viewportBorderBounds | scrollPane | no |
viewportView | viewport | no |
wheelScrollingEnabled | scrollPane | yes |
Nested Class Summary | |
---|---|
protected class | JScrollPane.AccessibleJScrollPane
Provides accessibility support for the JScrollPane .
|
protected class | JScrollPane.ScrollBar |
Field Summary | |
---|---|
protected JViewport | columnHeader |
protected JScrollBar | horizontalScrollBar |
protected int | horizontalScrollBarPolicy |
protected Component | lowerLeft |
protected Component | lowerRight |
protected JViewport | rowHeader |
protected Component | upperLeft |
protected Component | upperRight |
protected JScrollBar | verticalScrollBar |
protected int | verticalScrollBarPolicy |
protected JViewport | viewport |
Constructor Summary | |
---|---|
JScrollPane()
Creates a new JScrollPane without a view. | |
JScrollPane(Component view)
Creates a new JScrollPane that embeds the specified
view component, displaying vertical and horizontal scrollbars
as needed.
| |
JScrollPane(int vsbPolicy, int hsbPolicy)
Creates a new JScrollPane without a view; The scrollbar
policies are set to vsbPolicy and hsbPolicy .
| |
JScrollPane(Component view, int vsbPolicy, int hsbPolicy)
Creates a new JScrollPane that embeds the specified
view component; The scrollbar
policies are set to vsbPolicy and hsbPolicy .
|
JScrollPane
without a view. The scrollbar
policy is set to {@link #VERTICAL_SCROLLBAR_AS_NEEDED} and
{@link #HORIZONTAL_SCROLLBAR_AS_NEEDED}.JScrollPane
that embeds the specified
view
component, displaying vertical and horizontal scrollbars
as needed.
Parameters: view the component that is embedded inside the JScrollPane
JScrollPane
without a view; The scrollbar
policies are set to vsbPolicy
and hsbPolicy
.
Parameters: vsbPolicy the vertical scrollbar policy to set hsbPolicy the vertical scrollbar policy to set
See Also: HORIZONTAL_SCROLLBAR_ALWAYS HORIZONTAL_SCROLLBAR_AS_NEEDED HORIZONTAL_SCROLLBAR_NEVER VERTICAL_SCROLLBAR_ALWAYS VERTICAL_SCROLLBAR_AS_NEEDED VERTICAL_SCROLLBAR_NEVER
JScrollPane
that embeds the specified
view
component; The scrollbar
policies are set to vsbPolicy
and hsbPolicy
.
Parameters: vsbPolicy the vertical scrollbar policy to set hsbPolicy the vertical scrollbar policy to set
See Also: HORIZONTAL_SCROLLBAR_ALWAYS HORIZONTAL_SCROLLBAR_AS_NEEDED HORIZONTAL_SCROLLBAR_NEVER VERTICAL_SCROLLBAR_ALWAYS VERTICAL_SCROLLBAR_AS_NEEDED VERTICAL_SCROLLBAR_NEVER
JScrollPane
.
Returns: the accessible context associated with this
JScrollPane
Returns: The scrollpane's UI delegate.
Parameters: ui The scrollpane's UI delegate.