Sets the selected state of a particular item in the list.
public void setSelected( int index, boolean value )
index
The zero-based index of the item to update.
value
Set to true to select; set to false to clear.
If the list is enabled for multiple selections, this item will not affect other selected items. Otherwise, other selections will be cleared.
See Also getSelected