DefaultTreeCellRenderer  
Author Message
mergaite_lietuvaite





PostPosted: 2004-2-25 20:57:00 Top

java-programmer, DefaultTreeCellRenderer hi,

I want remove the icon, that stays by a TreeNode lefts, that has got
any TreeNodes. The icon presents, the TreeNode is either expanded or
collapsed.

(I am meaning not the icon, that can you remove with:
defaultTreeCellRenderer.setLeafIcon(null);
defaultTreeCellRenderer.setClosedIcon(null);
defaultTreeCellRenderer.setOpenIcon(null);
)

thank You a lot for any help!!!

Joana
 
ak





PostPosted: 2004-2-26 1:19:00 Top

java-programmer >> DefaultTreeCellRenderer > I want remove the icon, that stays by a TreeNode lefts, that has got
> any TreeNodes. The icon presents, the TreeNode is either expanded or
> collapsed.
>
> (I am meaning not the icon, that can you remove with:
> defaultTreeCellRenderer.setLeafIcon(null);
> defaultTreeCellRenderer.setClosedIcon(null);
> defaultTreeCellRenderer.setOpenIcon(null);
> )
>
> thank You a lot for any help!!!

JTree#setShowsRootHandles(false);

____________

http://reader.imagero.com the best java image reader.