Add ActionListener
to your JComboBox
component and to like:
private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {
System.out.println(jComboBox1.getSelectedItem().toString());
}
this will get the selected item from your combo box, it will triggers every item you select from combobox