Hi everyone
I have an object that creates a JToolBar with a couple of buttons,
another object creating a JMenuBar with a couple of JMenuItems and
finally an object creating a JTree.
One of the buttons on the toolbar and one of the menu items on the
menu bar share the same action - they obviously do the same thing. I
want them to create a new node on the JTree.
But how can I make the Action class communicate with the JTree object?
Thanks
Rui Pacheco
Antti S. Brax - 05 Nov 2003 12:50 GMT
ruipacheco@hotmail.com wrote in comp.lang.java.gui:
> But how can I make the Action class communicate with the JTree object?
Your Action-object must have a reference to the JTree.

Signature
Antti S. Brax - asb(at)iki.fi Rullalautailu pitää lapset poissa ladulta
http://www.iki.fi/asb/ http://www.cs.helsinki.fi/u/abrax/hlb/