I have a compiling error: cannot resolve symbol class ActionAdapter
Any help is much appreciated.
posted 11 years ago
Check the javadocs, left lower frame, the one that says All Classes. Scroll down to find there is not a listing for ActionAdapter. Adapters are written for classes which have a lot of methods, eg, MouseListener and WindowListener. You'll find MouseAdapter and WindowAdapter in the All Classes listing. Since ActionListener has only the single method, actionPerformed it wouldn't make sense to create an adapter class for it. So in your code you can do: