netbeans how get string from jcombobox code example Example: netbeans how to get string from jcombobox String s = (String)JComboBox.getSelectedItem();