JScrollPane

Extends
JComponent
Methods
12
Fields
7

Getting one

JScrollPane.new()
PluginPanel.new():getScrollPane()

Methods

MethodReturnsDescription
getViewport()JViewport?The viewport (its child 0).
getVerticalScrollBar()JScrollBar?The vertical scroll bar.
getHorizontalScrollBar()JScrollBar?The horizontal scroll bar.
setVerticalScrollBarPolicy(number)()When the vertical bar shows (VERTICAL_SCROLLBAR_AS_NEEDED, _NEVER, _ALWAYS); any other value raises.
setHorizontalScrollBarPolicy(number)()When the horizontal bar shows (HORIZONTAL_SCROLLBAR_AS_NEEDED, _NEVER, _ALWAYS); any other value raises.
getVerticalScrollBarPolicy()numberThe vertical bar's policy.
getHorizontalScrollBarPolicy()numberThe horizontal bar's policy.
setViewportView(Component?)()Makes view the viewport's view (taking it from any container it was in).
setWheelScrollingEnabled(boolean)()Scrolls with the mouse wheel, or not.
new()JScrollPane() -> JScrollPane: An empty scroll pane, both bars as needed.
new(Component)JScrollPane
new(Component, number, number)JScrollPane
new(number, number)JScrollPane
init(JScrollPane)()(JScrollPane) -> (): An empty scroll pane, both bars as needed.
init(JScrollPane, Component)()
init(JScrollPane, Component, number, number)()
init(JScrollPane, number, number)()
isInstance(any)booleanWhether obj is a JScrollPane object, a class(JScrollPane) subclass's included.

Fields

FieldTypeDescription
VERTICAL_SCROLLBAR_AS_NEEDEDnumberScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED: 20.
VERTICAL_SCROLLBAR_NEVERnumberScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER: 21.
VERTICAL_SCROLLBAR_ALWAYSnumberScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS: 22.
HORIZONTAL_SCROLLBAR_AS_NEEDEDnumberScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED: 30.
HORIZONTAL_SCROLLBAR_NEVERnumberScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER: 31.
HORIZONTAL_SCROLLBAR_ALWAYSnumberScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS: 32.
superJComponentClassJComponent's class table: the base class.

Returned by

MethodReturnsDescription
JScrollPaneClass.newJScrollPane() -> JScrollPane: An empty scroll pane, both bars as needed.
PluginPanel.getScrollPaneJScrollPane?The wrap's scroll pane, or nil for PluginPanel(false).

Method details

new

new: (() -> JScrollPane) & ((Component) -> JScrollPane) & ((Component, number, number) -> JScrollPane) & ((number, number) -> JScrollPane)

() -> JScrollPane: An empty scroll pane, both bars as needed.

(Component) -> JScrollPane: A scroll pane onto view, both bars as needed.

(Component, number, number) -> JScrollPane: A scroll pane onto view with the two policies.

(number, number) -> JScrollPane: An empty scroll pane with the two policies.

init

init: ((JScrollPane) -> ()) & ((JScrollPane, Component) -> ()) & ((JScrollPane, Component, number, number) -> ()) & ((JScrollPane, number, number) -> ())

(JScrollPane) -> (): An empty scroll pane, both bars as needed.

(JScrollPane, Component) -> (): A scroll pane onto view, both bars as needed.

(JScrollPane, Component, number, number) -> (): A scroll pane onto view with the two policies.

(JScrollPane, number, number) -> (): An empty scroll pane with the two policies.

isInstance

isInstance: (any) -> boolean

Whether obj is a JScrollPane object, a class(JScrollPane) subclass's included.