SelectedIndex Property (JComboBox)

Class

JComboBox.

Action

Gets the index of the currently selected item. The value is zero-based.

Syntax

C#
protected Integer SelectedIndex { get; }
VB
'Declaration
Protected Read Property SelectedIndex As Integer

Access

Read only.

Examples

VB

Dim selectedIndex As Integer = colorsComboBox.SelectedIndex