Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update JTree on the fly

Status
Not open for further replies.

widdgetz

Technical User
Aug 31, 2003
35
US
I am using threads to create a network instant messenger program, and I need to update the contact list, which is a JTree. The Jtree is inside a JScrollPane inside a JFrame.

I have implemented methods from "ChatListener" to detect the users on the network and any incoming chat requests. When the users change, I have to update the JTree, but I cannot get it to actually update on the screen.

I have a class variable JTree tree, which I have modified (to no avail).
Thank you for any help,
Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top