Top Description Inners Fields Constructors Methods
java.awt

public Class ScrollPane

extends Container
implements Accessible
Class Inheritance
All Implemented Interfaces
javax.accessibility.Accessible
Imports
java.awt.event.AdjustmentEvent, .AdjustmentListener, .MouseEvent, .MouseWheelEvent, java.awt.peer.ScrollPanePeer, java.beans.ConstructorProperties, .Transient, java.io.IOException, .ObjectInputStream, .ObjectOutputStream, .Serial, javax.accessibility.Accessible, .AccessibleContext, .AccessibleRole, sun.awt.ScrollPaneWheelScroller, .SunToolkit

A container class which implements automatic horizontal and/or vertical scrolling for a single child component. The display policy for the scrollbars can be set to:
  1. as needed: scrollbars created and shown only when needed by scrollpane
  2. always: scrollbars created and always shown by the scrollpane
  3. never: scrollbars never created or shown by the scrollpane

The state of the horizontal and vertical scrollbars is represented by two ScrollPaneAdjustable objects (one for each dimension) which implement the Adjustable interface. The API provides methods to access those objects such that the attributes on the Adjustable object (such as unitIncrement, value, etc.) can be manipulated.

Certain adjustable properties (minimum, maximum, blockIncrement, and visibleAmount) are set internally by the scrollpane in accordance with the geometry of the scrollpane and its child and these should not be set by programs using the scrollpane.

If the scrollbar display policy is defined as "never", then the scrollpane can still be programmatically scrolled using the setScrollPosition() method and the scrollpane will move and clip the child's contents appropriately. This policy is useful if the program needs to create and manage its own adjustable controls.

The placement of the scrollbars is controlled by platform-specific properties set by the user outside of the program.

The initial size of this container is set to 100x100, but can be reset using setSize().

Scrolling with the wheel on a wheel-equipped mouse is enabled by default. This can be disabled using setWheelScrollingEnabled. Wheel scrolling can be customized by setting the block and unit increment of the horizontal and vertical Adjustables. For information on how mouse wheel events are dispatched, see the class description for MouseWheelEvent.

Insets are used to define any space used by scrollbars and any borders created by the scroll pane. getInsets() can be used to get the current value for the insets. If the value of scrollbarsAlwaysVisible is false, then the value of the insets will change dynamically depending on whether the scrollbars are currently visible or not.

Authors
Tom Ball, Amy Fowler, Tim Prinzing

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
ScrollPane.AccessibleAWTScrollPane

This class implements accessibility support for the ScrollPane class.

pack-priv static class
ScrollPane.PeerFixer

Invoked when the value of the adjustable has changed.

Field Summary

Modifier and TypeField and Description
private static final String
private static final boolean
private ScrollPaneAdjustable
hAdjustable

An adjustable horizontal scrollbar.

private static int
private int
scrollbarDisplayPolicy

There are 3 ways in which a scroll bar can be displayed.

public static final int
SCROLLBARS_ALWAYS

Specifies that horizontal/vertical scrollbars should always be shown regardless of the respective sizes of the scrollpane and child.

public static final int
SCROLLBARS_AS_NEEDED

Specifies that horizontal/vertical scrollbar should be shown only when the size of the child exceeds the size of the scrollpane in the horizontal/vertical dimension.

public static final int
SCROLLBARS_NEVER

Specifies that horizontal/vertical scrollbars should never be shown regardless of the respective sizes of the scrollpane and child.

private static final long
serialVersionUID

Hides java.awt.Container.serialVersionUID.

Use serialVersionUID from JDK 1.1 for interoperability.
private ScrollPaneAdjustable
vAdjustable

An adjustable vertical scrollbar.

private boolean
wheelScrollingEnabled

Indicates whether or not scrolling should take place when a MouseWheelEvent is received.

Inherited from java.awt.Container:
containerListenerdescendantsCountINCLUDE_SELFlayoutMgrlisteningBoundsChildrenlisteningChildrenmodalAppContextmodalComppreserveBackgroundColorSEARCH_HEAVYWEIGHTS

Constructor Summary

AccessConstructor and Description
public
ScrollPane()

Create a new scrollpane container with a scrollbar display policy of "as needed".

public
ScrollPane(int
policy for when scrollbars should be shown
scrollbarDisplayPolicy
)

Create a new scrollpane container.

Method Summary

Modifier and TypeMethod and Description
protected final void
addImpl(Component
the component to be added
comp
,
Object
not applicable
constraints
,
int
position of child component (must be <= 0)
index
)

Overrides java.awt.Container.addImpl.

Adds the specified component to this scroll pane container.
public void
addNotify()

Overrides java.awt.Container.addNotify.

Creates the scroll pane's peer.
private void
addToPanel(Component comp, Object constraints, int index)

pack-priv void
pack-priv Dimension
calculateChildSize()

Determine the size to allocate the child component.

pack-priv String
constructComponentName()

Overrides java.awt.Component.constructComponentName.

Construct a name for this component.
public void
doLayout()

Overrides java.awt.Container.doLayout.

Lays out this container by resizing its child to its preferred size.
protected boolean
eventTypeEnabled(int type)

Overrides java.awt.Component.eventTypeEnabled.

If wheel scrolling is enabled, we return true for MouseWheelEvents
public AccessibleContext

Returns:

an AccessibleAWTScrollPane that serves as the AccessibleContext of this ScrollPane
getAccessibleContext
()

Overrides java.awt.Component.getAccessibleContext.

Implements javax.accessibility.Accessible.getAccessibleContext.

Gets the AccessibleContext associated with this ScrollPane.
public Adjustable

Returns:

the horizontal scrollbar state
getHAdjustable
()

Returns the ScrollPaneAdjustable object which represents the state of the horizontal scrollbar.

public int

Returns:

the height of a horizontal scrollbar in pixels
getHScrollbarHeight
()

Returns the height that would be occupied by a horizontal scrollbar, which is independent of whether it is currently displayed by the scroll pane or not.

public int

Returns:

the display policy for the scrollbars
getScrollbarDisplayPolicy
()

Returns the display policy for the scrollbars.

public Point

Returns:

the coordinate position for the current scroll position
getScrollPosition
()

Returns the current x,y position within the child which is displayed at the 0,0 location of the scrolled panel's view port.

public Adjustable

Returns:

the vertical scrollbar state
getVAdjustable
()

Returns the ScrollPaneAdjustable object which represents the state of the vertical scrollbar.

public Dimension

Returns:

the size of the view port in pixels
getViewportSize
()

Returns the current size of the scroll pane's view port.

public int

Returns:

the width of a vertical scrollbar in pixels
getVScrollbarWidth
()

Returns the width that would be occupied by a vertical scrollbar, which is independent of whether it is currently displayed by the scroll pane or not.

private static native void
initIDs()

Hides java.awt.Container.initIDs.

Initialize JNI field and method IDs
public boolean

Returns:

true if the wheel scrolling enabled; otherwise false
isWheelScrollingEnabled
()

Indicates whether or not scrolling will take place in response to the mouse wheel.

public void
layout()

Overrides java.awt.Container.layout.

Deprecated As of JDK version 1.1, replaced by doLayout().
public String

Returns:

the parameter string of this scroll pane
paramString
()

Overrides java.awt.Container.paramString.

Returns a string representing the state of this ScrollPane.
public void
printComponents(Graphics
the specified Graphics window
g
)

Overrides java.awt.Container.printComponents.

Prints the component in this scroll pane.
protected void
processMouseWheelEvent(MouseWheelEvent
the mouse wheel event
e
)

Overrides java.awt.Component.processMouseWheelEvent.

Process mouse wheel events that are delivered to this ScrollPane by scrolling an appropriate amount.
private void
readObject(ObjectInputStream
the ObjectInputStream to read
s
)

Hides java.awt.Container.readObject.

Reads default serializable fields to stream.
public final void
setLayout(LayoutManager
the specified layout manager
mgr
)

Overrides java.awt.Container.setLayout.

Sets the layout manager for this container.
public void
setScrollPosition(int
the x position to scroll to
x
,
int
the y position to scroll to
y
)

Scrolls to the specified position within the child component.

public void
setScrollPosition(Point
the Point representing the position to scroll to
p
)

Scrolls to the specified position within the child component.

public void
setWheelScrollingEnabled(boolean
true if scrolling should be done automatically for a MouseWheelEvent, false otherwise.
handleWheel
)

Enables/disables scrolling in response to movement of the mouse wheel.

private void
writeObject(ObjectOutputStream
the ObjectOutputStream to write
s
)

Hides java.awt.Container.writeObject.

Writes default serializable fields to stream.
Inherited from java.awt.Container:
addaddaddaddaddaddContainerListeneraddPropertyChangeListeneraddPropertyChangeListeneradjustDescendantsadjustDescendantsOnParentadjustListeningChildrenapplyComponentOrientationareFocusTraversalKeysSetcanContainFocusOwnercheckGDclearCurrentFocusCycleRootOnHideclearMostRecentFocusOwnerOnHidecontainsFocuscountComponentscountHierarchyMemberscreateChildHierarchyEventscreateHierarchyEventsdecreaseComponentCountdeliverEventdispatchEventImpldispatchEventToSelfeventEnabledfindComponentAtfindComponentAtfindComponentAtfindComponentAtImplgetAccessibleAtgetAccessibleChildgetAccessibleChildrenCountgetAlignmentXgetAlignmentYgetComponentgetComponentAtgetComponentAtgetComponentCountgetComponentsgetComponents_NoClientCodegetComponentsSyncgetComponentZOrdergetContainerListenersgetDropTargetEventTargetgetFocusTraversalKeysgetFocusTraversalPolicygetHeavyweightContainergetInsetsgetLayoutgetListenersgetMaximumSizegetMinimumSizegetMouseEventTargetgetMousePositiongetOpaqueShapegetPreferredSizegetTraversalRoothasHeavyweightDescendantshasLightweightDescendantsincreaseComponentCountinitializeFocusTraversalKeysinsetsinvalidateinvalidateParentinvalidateTreeisAncestorOfisFocusCycleRootisFocusCycleRootisFocusTraversalPolicyProviderisFocusTraversalPolicySetisRecursivelyVisibleUpToHeavyweightContainerisSameOrAncestorOfisValidateRootlightweightPaintlightweightPrintlistlistlocateminimumSizemixOnHidingmixOnReshapingmixOnShowingmixOnValidatingmixOnZOrderChangingnumListeningpaintpaintComponentspaintHeavyweightComponentspostProcessKeyEventpostsOldMouseEventspreferredSizepreProcessKeyEventprintprintHeavyweightComponentsprocessContainerEventprocessEventproxyEnableEventsrecursiveApplyCurrentShaperecursiveApplyCurrentShaperecursiveApplyCurrentShaperecursiveSubtractAndApplyShaperecursiveSubtractAndApplyShaperecursiveSubtractAndApplyShaperemoveremoveremoveAllremoveContainerListenerremoveNotifysetComponentZOrdersetFocusCycleRootsetFocusTraversalKeyssetFocusTraversalPolicysetFocusTraversalPolicyProvidersetFonttransferFocusDownCycleupdateupdateChildGraphicsDatavalidatevalidateTreevalidateUnconditionally

Field Detail

baseback to summary
private static final String base
defaultWheelScrollback to summary
private static final boolean defaultWheelScroll
hAdjustableback to summary
private ScrollPaneAdjustable hAdjustable

An adjustable horizontal scrollbar. It is important to note that you must NOT call 3 Adjustable methods, namely: setMinimum(), setMaximum(), setVisibleAmount().

See Also
getHAdjustable
nameCounterback to summary
private static int nameCounter
scrollbarDisplayPolicyback to summary
private int scrollbarDisplayPolicy

There are 3 ways in which a scroll bar can be displayed. This integer will represent one of these 3 displays - (SCROLLBARS_ALWAYS, SCROLLBARS_AS_NEEDED, SCROLLBARS_NEVER)

See Also
getScrollbarDisplayPolicy
SCROLLBARS_ALWAYSback to summary
public static final int SCROLLBARS_ALWAYS

Specifies that horizontal/vertical scrollbars should always be shown regardless of the respective sizes of the scrollpane and child.

SCROLLBARS_AS_NEEDEDback to summary
public static final int SCROLLBARS_AS_NEEDED

Specifies that horizontal/vertical scrollbar should be shown only when the size of the child exceeds the size of the scrollpane in the horizontal/vertical dimension.

SCROLLBARS_NEVERback to summary
public static final int SCROLLBARS_NEVER

Specifies that horizontal/vertical scrollbars should never be shown regardless of the respective sizes of the scrollpane and child.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.awt.Container.serialVersionUID.

Use serialVersionUID from JDK 1.1 for interoperability.

Annotations
@Serial
vAdjustableback to summary
private ScrollPaneAdjustable vAdjustable

An adjustable vertical scrollbar. It is important to note that you must NOT call 3 Adjustable methods, namely: setMinimum(), setMaximum(), setVisibleAmount().

See Also
getVAdjustable
wheelScrollingEnabledback to summary
private boolean wheelScrollingEnabled

Indicates whether or not scrolling should take place when a MouseWheelEvent is received.

Since
1.4

Constructor Detail

ScrollPaneback to summary
public ScrollPane() throws HeadlessException

Create a new scrollpane container with a scrollbar display policy of "as needed".

Exceptions
HeadlessException:
if GraphicsEnvironment.isHeadless() returns true
See Also
java.awt.GraphicsEnvironment#isHeadless
ScrollPaneback to summary
public ScrollPane(int scrollbarDisplayPolicy) throws HeadlessException

Create a new scrollpane container.

Parameters
scrollbarDisplayPolicy:int

policy for when scrollbars should be shown

Annotations
@ConstructorProperties:scrollbarDisplayPolicy
Exceptions
HeadlessException:
if GraphicsEnvironment.isHeadless() returns true
IllegalArgumentException:
if the specified scrollbar display policy is invalid
See Also
java.awt.GraphicsEnvironment#isHeadless

Method Detail

addImplback to summary
protected final void addImpl(Component comp, Object constraints, int index)

Overrides java.awt.Container.addImpl.

Adds the specified component to this scroll pane container. If the scroll pane has an existing child component, that component is removed and the new one is added.

Parameters
comp:Component

the component to be added

constraints:Object

not applicable

index:int

position of child component (must be <= 0)

addNotifyback to summary
public void addNotify()

Overrides java.awt.Container.addNotify.

Creates the scroll pane's peer.

addToPanelback to summary
private void addToPanel(Component comp, Object constraints, int index)
autoProcessMouseWheelback to summary
pack-priv void autoProcessMouseWheel(MouseWheelEvent e)

Overrides java.awt.Component.autoProcessMouseWheel.

calculateChildSizeback to summary
pack-priv Dimension calculateChildSize()

Determine the size to allocate the child component. If the viewport area is bigger than the preferred size of the child then the child is allocated enough to fill the viewport, otherwise the child is given it's preferred size.

constructComponentNameback to summary
pack-priv String constructComponentName()

Overrides java.awt.Component.constructComponentName.

Construct a name for this component. Called by getName() when the name is null.

doLayoutback to summary
public void doLayout()

Overrides java.awt.Container.doLayout.

Lays out this container by resizing its child to its preferred size. If the new preferred size of the child causes the current scroll position to be invalid, the scroll position is set to the closest valid position.

See Also
Component#validate
eventTypeEnabledback to summary
protected boolean eventTypeEnabled(int type)

Overrides java.awt.Component.eventTypeEnabled.

If wheel scrolling is enabled, we return true for MouseWheelEvents

Since
1.4
getAccessibleContextback to summary
public AccessibleContext getAccessibleContext()

Overrides java.awt.Component.getAccessibleContext.

Implements javax.accessibility.Accessible.getAccessibleContext.

Gets the AccessibleContext associated with this ScrollPane. For scroll panes, the AccessibleContext takes the form of an AccessibleAWTScrollPane. A new AccessibleAWTScrollPane instance is created if necessary.

Returns:AccessibleContext

an AccessibleAWTScrollPane that serves as the AccessibleContext of this ScrollPane

Since
1.3
getHAdjustableback to summary
public Adjustable getHAdjustable()

Returns the ScrollPaneAdjustable object which represents the state of the horizontal scrollbar. The declared return type of this method is Adjustable to maintain backward compatibility.

Returns:Adjustable

the horizontal scrollbar state

See Also
java.awt.ScrollPaneAdjustable
getHScrollbarHeightback to summary
public int getHScrollbarHeight()

Returns the height that would be occupied by a horizontal scrollbar, which is independent of whether it is currently displayed by the scroll pane or not.

Returns:int

the height of a horizontal scrollbar in pixels

getScrollbarDisplayPolicyback to summary
public int getScrollbarDisplayPolicy()

Returns the display policy for the scrollbars.

Returns:int

the display policy for the scrollbars

getScrollPositionback to summary
public Point getScrollPosition()

Returns the current x,y position within the child which is displayed at the 0,0 location of the scrolled panel's view port. This is a convenience method which interfaces with the adjustable objects which represent the state of the scrollbars.

Returns:Point

the coordinate position for the current scroll position

Annotations
@Transient
Exceptions
NullPointerException:
if the scrollpane does not contain a child
getVAdjustableback to summary
public Adjustable getVAdjustable()

Returns the ScrollPaneAdjustable object which represents the state of the vertical scrollbar. The declared return type of this method is Adjustable to maintain backward compatibility.

Returns:Adjustable

the vertical scrollbar state

See Also
java.awt.ScrollPaneAdjustable
getViewportSizeback to summary
public Dimension getViewportSize()

Returns the current size of the scroll pane's view port.

Returns:Dimension

the size of the view port in pixels

getVScrollbarWidthback to summary
public int getVScrollbarWidth()

Returns the width that would be occupied by a vertical scrollbar, which is independent of whether it is currently displayed by the scroll pane or not.

Returns:int

the width of a vertical scrollbar in pixels

initIDsback to summary
private static native void initIDs()

Hides java.awt.Container.initIDs.

Initialize JNI field and method IDs

isWheelScrollingEnabledback to summary
public boolean isWheelScrollingEnabled()

Indicates whether or not scrolling will take place in response to the mouse wheel. Wheel scrolling is enabled by default.

Returns:boolean

true if the wheel scrolling enabled; otherwise false

Since
1.4
See Also
setWheelScrollingEnabled(boolean)
layoutback to summary
public void layout()

Overrides java.awt.Container.layout.

Deprecated

As of JDK version 1.1, replaced by doLayout().

Annotations
@Deprecated
paramStringback to summary
public String paramString()

Overrides java.awt.Container.paramString.

Returns a string representing the state of this ScrollPane. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.

Returns:String

the parameter string of this scroll pane

printComponentsback to summary
public void printComponents(Graphics g)

Overrides java.awt.Container.printComponents.

Prints the component in this scroll pane.

Parameters
g:Graphics

the specified Graphics window

See Also
Component#print, Component#printAll
processMouseWheelEventback to summary
protected void processMouseWheelEvent(MouseWheelEvent e)

Overrides java.awt.Component.processMouseWheelEvent.

Process mouse wheel events that are delivered to this ScrollPane by scrolling an appropriate amount.

Note that if the event parameter is null the behavior is unspecified and may result in an exception.

Parameters
e:MouseWheelEvent

the mouse wheel event

Since
1.4
readObjectback to summary
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException

Hides java.awt.Container.readObject.

Reads default serializable fields to stream.

Parameters
s:ObjectInputStream

the ObjectInputStream to read

Annotations
@Serial
Exceptions
ClassNotFoundException:
if the class of a serialized object could not be found
IOException:
if an I/O error occurs
HeadlessException:
if GraphicsEnvironment.isHeadless() returns true
See Also
java.awt.GraphicsEnvironment#isHeadless
setLayoutback to summary
public final void setLayout(LayoutManager mgr)

Overrides java.awt.Container.setLayout.

Sets the layout manager for this container. This method is overridden to prevent the layout mgr from being set.

Parameters
mgr:LayoutManager

the specified layout manager

setScrollPositionback to summary
public void setScrollPosition(int x, int y)

Scrolls to the specified position within the child component. A call to this method is only valid if the scroll pane contains a child. Specifying a position outside of the legal scrolling bounds of the child will scroll to the closest legal position. Legal bounds are defined to be the rectangle: x = 0, y = 0, width = (child width - view port width), height = (child height - view port height). This is a convenience method which interfaces with the Adjustable objects which represent the state of the scrollbars.

Parameters
x:int

the x position to scroll to

y:int

the y position to scroll to

Exceptions
NullPointerException:
if the scrollpane does not contain a child
setScrollPositionback to summary
public void setScrollPosition(Point p)

Scrolls to the specified position within the child component. A call to this method is only valid if the scroll pane contains a child and the specified position is within legal scrolling bounds of the child. Specifying a position outside of the legal scrolling bounds of the child will scroll to the closest legal position. Legal bounds are defined to be the rectangle: x = 0, y = 0, width = (child width - view port width), height = (child height - view port height). This is a convenience method which interfaces with the Adjustable objects which represent the state of the scrollbars.

Parameters
p:Point

the Point representing the position to scroll to

Exceptions
NullPointerException:
if p is null
setWheelScrollingEnabledback to summary
public void setWheelScrollingEnabled(boolean handleWheel)

Enables/disables scrolling in response to movement of the mouse wheel. Wheel scrolling is enabled by default.

Parameters
handleWheel:boolean

true if scrolling should be done automatically for a MouseWheelEvent, false otherwise.

Since
1.4
See Also
isWheelScrollingEnabled, java.awt.event.MouseWheelEvent, java.awt.event.MouseWheelListener
writeObjectback to summary
private void writeObject(ObjectOutputStream s) throws IOException

Hides java.awt.Container.writeObject.

Writes default serializable fields to stream.

Parameters
s:ObjectOutputStream

the ObjectOutputStream to write

Annotations
@Serial
Exceptions
IOException:
if an I/O error occurs
java.awt back to summary

protected Class ScrollPane.AccessibleAWTScrollPane

extends AccessibleAWTContainer
Class Inheritance

This class implements accessibility support for the ScrollPane class. It provides an implementation of the Java Accessibility API appropriate to scroll pane user-interface elements.
Since
1.3

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.awt.Container.AccessibleAWTContainer.serialVersionUID.

Use serialVersionUID from JDK 1.3 for interoperability.
Inherited from java.awt.Container.AccessibleAWTContainer:
accessibleContainerHandler

Constructor Summary

AccessConstructor and Description
protected
AccessibleAWTScrollPane()

Constructs an AccessibleAWTScrollPane.

Method Summary

Modifier and TypeMethod and Description
public AccessibleRole

Returns:

an instance of AccessibleRole describing the role of the object
getAccessibleRole
()

Overrides java.awt.Component.AccessibleAWTComponent.getAccessibleRole.

Get the role of this object.
Inherited from java.awt.Container.AccessibleAWTContainer:
addPropertyChangeListenergetAccessibleAtgetAccessibleChildgetAccessibleChildrenCountremovePropertyChangeListener

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.awt.Container.AccessibleAWTContainer.serialVersionUID.

Use serialVersionUID from JDK 1.3 for interoperability.

Annotations
@Serial

Constructor Detail

AccessibleAWTScrollPaneback to summary
protected AccessibleAWTScrollPane()

Constructs an AccessibleAWTScrollPane.

Method Detail

getAccessibleRoleback to summary
public AccessibleRole getAccessibleRole()

Overrides java.awt.Component.AccessibleAWTComponent.getAccessibleRole.

Get the role of this object.

Returns:AccessibleRole

an instance of AccessibleRole describing the role of the object

See Also
AccessibleRole
java.awt back to summary

pack-priv Class ScrollPane.PeerFixer

extends Object
implements AdjustmentListener, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.awt.event.AdjustmentListener, java.util.EventListener

Invoked when the value of the adjustable has changed.

Field Summary

Modifier and TypeField and Description
private final ScrollPane
private static final long
serialVersionUID

Use serialVersionUID from JDK 1.1.1 for interoperability.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
adjustmentValueChanged(AdjustmentEvent
the event to be processed
e
)

Implements java.awt.event.AdjustmentListener.adjustmentValueChanged.

Invoked when the value of the adjustable has changed.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

scrollerback to summary
private final ScrollPane scroller
serialVersionUIDback to summary
private static final long serialVersionUID

Use serialVersionUID from JDK 1.1.1 for interoperability.

Annotations
@Serial

Constructor Detail

PeerFixerback to summary
pack-priv PeerFixer(ScrollPane scroller)

Method Detail

adjustmentValueChangedback to summary
public void adjustmentValueChanged(AdjustmentEvent e)

Implements java.awt.event.AdjustmentListener.adjustmentValueChanged.

Invoked when the value of the adjustable has changed.

Parameters
e:AdjustmentEvent

Doc from java.awt.event.AdjustmentListener.adjustmentValueChanged.

the event to be processed

Annotations
@SuppressWarnings:deprecation