Search:

Type: Posts; User: copeg

Search: Search took 0.13 seconds.

  1. Replies
    6
    Views
    2,619

    Re: ActionListener inside another ActionListener

    That works for as many JComboBox's as you have, provided you use the appropriate references to the object to get the selected value.
  2. Replies
    6
    Views
    2,619

    Re: ActionListener inside another ActionListener

    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....
  3. Replies
    6
    Views
    2,619

    Re: ActionListener inside another ActionListener

    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...
Results 1 to 3 of 3