Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

?? How can I update multiple JTrees GUI Simutaneously
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

Report this thread to moderator Post Follow-up to this message
Old Post
michaeljavakid
05-20-06 06:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:06 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.