• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

JTree - guys & gals - plz help !!!

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
The moustache of a titan! The ad of a flea:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic