SyntaxFix
Write A Post
Hire A Developer
Questions
You may try these
int selectedIndex = myComboBox.getSelectedIndex();
-or-
Object selectedObject = myComboBox.getSelectedItem();
String selectedValue = myComboBox.getSelectedValue().toString();