• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing design question

 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing components are conventionally setup in a tree structure and then event listeners are attached to it to manage user interactions.

E.g.


Suppose, node D listens for an event that needs to modify node C which is inaccessible from the scope. What are some approaches to wire up the listeners?

I suppose this requires some vocabulary to abstract out responsibilities and to promote code reuse and maintainability. Any suggested books that addresses this?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!