how to get the selected value in combobox java?
3 Answers. You can get the selected or typed value from a JComboBox by calling method getSelectedItem . If it is not an existing item, then you'll get a String object. Otherwise you'll get whatever object you populated the combo box with.