how can i add tooltip to Jtree Nodes

Hi in my program tree built at runtime so i have to give tool tip text for each node diffrantly how can i do thisMahesh.B
[142 byte] By [javamaheshb] at [2007-9-26 9:02:02]
# 1
Try using this command ToolTipManager.sharedInstance().registerComponent(yourTree); Reg,sai
saireddy at 2007-7-1 20:05:03 > top of Java-index,Archived Forums,Swing...
# 2
yah itried its not working mahesh
javamaheshb at 2007-7-1 20:05:03 > top of Java-index,Archived Forums,Swing...
# 3
Yeah, I coudn't work out a simple way to do this either. Apparently, you need to define a custom tree-cell renderer that includes tooltips. Not tried it myself yet, however.Andy.
andypcarter at 2007-7-1 20:05:03 > top of Java-index,Archived Forums,Swing...
# 4
Have you already taken a look at the tutorial: http://java.sun.com/docs/books/tutorial/uiswing/components/tree.htmlI think it answers your question.Peter
pbackx at 2007-7-1 20:05:03 > top of Java-index,Archived Forums,Swing...