That works for as many JComboBox's as you have, provided you use the appropriate references to the object to get the selected value.
Type: Posts; User: copeg
That works for as many JComboBox's as you have, provided you use the appropriate references to the object to get the selected value.
Then why not just get the value of jTypeDDB?
if (e.getSource() == searchButton) {
String type = jTypeDDB.getSelectedItem().toString();
}
...and please read the note in post #2....
I don't understand why do you need to nest an ActionEvent? When the user hits the Submit JButton, the ActionListener code just needs to retrieve the selected value from the JComboBox
(...and...