Code Comments
Programming Forum and web based access to our favorite programming groups.Hi guys, thank you for viewing my thread. I have 2 JTree objects.(Tree1&Tree2). I wrote a JTree node selection listene r which extends the MouseAdaptor to respond to mouse click in my first JTree object(Tree1). The listener works fine and can return me what I need, for example return me the node I clicked and some associated information which should be used to update my second tree(Tree2) correspondingly. These 2 trees locate in two se parated splitPane in one GUI window. My idea is let the second tree(Tree2) be updated simutaneously upon the clic king in my first JTree node(Tree1). My question is: How could I inform the second tree(Tree2) about my mouse eve nt in the first tree? I mean how could I let Tree2's GUI update automaticall y upon any event in Tree1? Should I use multithread for it, such as invokeLa ter()? Is there any minimum solution for this? Is there any hints and examples? Thanks Michael
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.