Search:

Type: Posts; User: ChristopherLowe

Search: Search took 0.12 seconds.

  1. Replies
    28
    Views
    3,083

    Re: ActionEvent

    Woah, confusing thread.

    I suspect you don't really understand the difference between a class and an object. When you define a variable or method as static you are saying it belongs to the class,...
  2. Replies
    28
    Views
    3,083

    Re: ActionEvent

    You need to tell the button that the class is the action listener.



    button.addActionListener(this);


    You can read up on Action Listeners here

    --- Update ---
Results 1 to 2 of 2