Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to handle many events ?

 
Eusebio Floriano
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I would like to know how to handle events in forms with many controls.
For example, there is a short-cut "XXX" associated with an event and
every control should handle it.
How is the best way to handle it ? Is there any pattern for it ?

Regards,
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This might be possible using Action class (javax.swing.Action). Theres a section in the Java Tutorial on it, but the last time I checked it wasn't very complete.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic