• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree - guys & gals - plz help !!!  RSS feed

 
vinod ac
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi pals,
Thanks 4 reading my query !!!
I'm developing an instant messenger like Yahoo Messenger using swing,rmi,jsp,jdbc,networking.
While loading the friend's list i add the names as leaves in the JTree. When the application loads the tree remains in closed state. I want it to be in expanded state when the programs loads.
can any body help me ?? plzzzzz
Similarly while loading the friend's list, to show the online buddies & those offline, i have to set the corresponding icon for the leaf.I dont know how 2 set the icons for the leaves in the JTree (both smiling icon and sleeping icon).
Please help me ...... Thanks in advance
my e-mail id : plzmailme@rediff.com
 
Lee Wallen
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this link for an example of how to set the tree icons:
http://www.edu.uni-klu.ac.at/~mkohlwei/jfc/d/MyTreeCellRenderer.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!