Search:

Type: Posts; User: pottsiex5

Search: Search took 0.14 seconds.

  1. Replies
    9
    Views
    5,496

    Re: How to use multiple actionlisteners

    Hey,
    I got it to work. I made the GUI in a constructor method and then used main to create the new GUI. Thank You for the help :)
  2. Replies
    9
    Views
    5,496

    Re: How to use multiple actionlisteners

    Hi,
    I tried using this:


    ActionListener al = new ActionListener(){
    public void actionPerformed(ActionEvent event){
    if(event.getSource()==add){
    ...
  3. Replies
    9
    Views
    5,496

    How to use multiple actionlisteners

    Hi,
    I am trying to make a code that has multiple buttons, but the only way i know how to make action listeners are to either use inner classes (which require variable to be final, which isnt good...
Results 1 to 3 of 3