ListBox.setItems

Overview | Methods | Fields | This Package | All Packages

ListBox.setItems

Adds a set of items to the list box.

Syntax

public final void setItems( Object[] value )

Parameters

value

A zero-based array of objects (generally String objects) whose toString methods return the strings you want to display in the list box. If the sorted property of the list box is set to true, the items are inserted into the list alphabetically. Otherwise, the items are inserted in the order they occur the array.

Remarks

This method removes all existing items from the list box before inserting the new items.

See Also   getItems