This is a discussion on App Architecture II - Java ; Hi everyone I can't get past this problem. As far as this project is concerned, this is the only thing separating em from Nirvana. I have asked this question before, in an oversimplified manner so I'm developing the question more ...
Hi everyone
I can't get past this problem. As far as this project is concerned,
this is the only thing separating em from Nirvana. I have asked this
question before, in an oversimplified manner so I'm developing the
question more this time.
I am developing an Swing application. The application has the
following objects: a menu, a toolbar, an action shared by both and a
jtree.
Now, my problem is, how to make those objects communicate. When I
press an JMenuItem on the menu or a button on the toolbar I call the
action object and it performs some sort of action upon the jtree.
But how do I handle the communication between the JTree and the
Action?
This is not a Java or Swing problem, it's rather one inherent to
object oriented development. Any detailed answers or pointers to sites
explaining how to handle this are more than welcome. Even google
keywords are welcome.
Thank you very much
Rui Pacheco