how to get a set a JcomboBox code example Example: set jcombobox index java int i = 2; JComboBox.setSelectedIndex(i);