Re: actionPerformed method
I just fixed it by removing a "@Override" tag that had been above that method. I don't why it was even there, but now my program works. Thanks again.
Re: actionPerformed method
Is it possible to just delete this thread? Unless, of course, there is some sort of use to be found in it...
Re: actionPerformed method
If you removed the @Override annotation and that fixes your compilation problem, then that means you didn't properly override the actionPerformed method. In this case, there are a few things to check:
1. Did you remember to have your class extend/implement some class/interface?
2. Is the method spelled correctly (Java is case-sensitive)?
3. Do you have the parameters correct (both type and order matter, name not so much)?
4. Do you have at least the access level defined in the superclass? This means that if a method was declared protected in the super class, it must be protected or public in your class?