Retrieves the zero-based index of the currently selected item in the combo box.
public final int getSelectedIndex()
Returns the zero-based index of the currently selected item in a combo box. If no item is currently selected, the return value is -1.
See Also setSelectedIndex