Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AbstractAction = Command Pattern?

 
Lance Finney
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using subclasses of AbstractAction for my buttons and menuItems, and I was thinking about switching to the Command Pattern. However, the more I think about it, the more I wonder if I already have the Command pattern using my approach.
Essentially, AbstractAction serves the purpose of Command, and ActionPerformed served the purpose of execute().
Does this seems right?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!