swing jcombobox get selected item code example Example: java jcombobox get selected item String a = jcombobox.getselecteditem().toString();