Overview | Methods | This Package | All Packages
Adds an item to the combo box at the specified position.
Syntax
public final void insertItem( int index, Object item )
Parameters
index
The zero-based position where you want to insert the item into the combo box.
item
The object (generally a String object) whose corresponding string you want to insert into the list. The string returned by the toString property of this object is inserted into the combo box.
Exceptions
WFCInvalidArgumentException thrown if the specified index is not valid.
Remarks
Items inserted into a combo box using this method are not sorted, even if the sorted property is set to true. To add an item that is inserted into the list alphabetically when the sorted property is set to true, use the addItem method.