Search:

Type: Posts; User: Norm

Search: Search took 0.15 seconds.

  1. Replies
    9
    Views
    5,492

    Re: How to use multiple actionlisteners

    Move the code out of the main method into the constructor for the class and have the only code in the main method call that constructor. Then you can use class variables.
  2. Replies
    9
    Views
    5,492

    Re: How to use multiple actionlisteners

    You can also make an inner class that extends ActionListener, create an instance of that and add it as a listener.
    Does your usage of getSource() work? Where is the object: event defined and given...
Results 1 to 2 of 2