Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.19 seconds.

  1. Replies
    6
    Views
    1,427

    Re: Need help with ActionListener Error

    Recommended reading: Action Listeners - Tutorials - Static Void Games
  2. Replies
    6
    Views
    1,427

    Re: Need help with ActionListener Error

    Where do you have your ClickListener class defined?

    It looks like you're trying to use it in your main method, so ClickListener must either be in its own file or be a static inner class.
  3. Replies
    6
    Views
    1,427

    Re: Need help with ActionListener Error

    Looks like you're trying to add an ActionListener to an array. You can't do that. Instead, loop through each JButton in the array and add the ActionListener to them.
Results 1 to 3 of 3