why tree is not showing tooltip
hi all,
i am seting the tooltip and icon for each node in DefaultTreeCellRenderer. but i am not able to see when i take mouse on each node. I can saw a Icon for each node.
what i am doing wrong with the following code.
privateclass ATSImageIconRendererextends DefaultTreeCellRenderer
{
public Component getTreeCellRendererComponent(JTree tree, Object value,boolean sel,
boolean expanded,boolean leaf,int row,
boolean hasFocus)
{
super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
if(value !=null){
setIcon(ATSResources.ATSImages.ONLINEUSERICON);
setToolTipText(value.toString());
}
returnthis;
}
}
thanks
daya

