Retrieves the index of the selected tab in this control.
public final int getSelectedIndex()
Returns the zero-based index of the tab that is selected in this control. Returns -1 if no tab is selected.
See Also setSelectedIndex