ListBox.setScrollAlwaysVisible

Overview | Methods | Fields | This Package | All Packages

ListBox.setScrollAlwaysVisible

For single-column list boxes, sets a boolean value indicating whether the scroll bar always appears on right side of the list, even when all items are visible in the list box without scrolling.

Syntax

public final void setScrollAlwaysVisible( boolean value )

Parameters

value

Set to true if the scroll bar should always be visible; otherwise, set to false. The default value is false.

Remarks

By default, a scroll bar appears only when there are enough items to warrant it. For multicolumn list boxes, this method sets a boolean value indicating whether a horizontal scroll bar should appear at the bottom of the list box. By default, no horizontal scroll bar appears with a multicolumn list box. A multicolumn list box never has a vertical scroll bar.

See Also   getScrollAlwaysVisible