• Post Reply Bookmark Topic Watch Topic
  • New Topic

ActionAdapter compiler problem  RSS feed

 
Vincent Padilla
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a compiling error: cannot resolve symbol class ActionAdapter



Any help is much appreciated.

Thank you.

Vincent
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!