Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.11 seconds.

  1. Replies
    5
    Views
    1,159

    Re: JComboBox Issue

    Here is an example:


    final JButton button = new JButton("Click me");

    button.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e){
    button.setText("You...
  2. Replies
    5
    Views
    1,159

    Re: JComboBox Issue

    Read the tutorial on anonymous classes: Anonymous Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)

    How would you use those variables normally? Do the same thing in...
  3. Replies
    5
    Views
    1,159

    Re: JComboBox Issue

    Look at these two lines:


    JComboBox comboDest1 = (JComboBox) event.getSource();
    JComboBox comboAccom1 =(JComboBox) event.getSource();


    That's not going to work. The getSource() function...
Results 1 to 3 of 3