ListBox Class

Methods | Fields | This Package | All Packages

Encapsulates the Windows list box control, which displays a list from which the user can select one or more items.

Component
  |
  +--Control
    |
    +--ListBox

package com.ms.wfc.ui

public class ListBox
extends
Control****

Remarks

Use the addItem method to add a single item to the end of the list or to its sorted position in the list, or use the insertItem method to add a single item to a specific location in the list. If you want to add a set of items to a list box at one time, the most efficient way is to use the setItems method. Use the getSelected method to determine if a specific item in the list is selected; use the getSelectedIndex, getSelectedIndices, getSelectedItem, and getSelectedItems methods to determine which item or items in the list box are selected.