richard_fairall
asked on
Swing, JTree hide rootHandles on all Nodes of selected trees
Hi
I need to remove rootHandles from some trees in the application.
So, I can't set a general UIDefault or something like that to affect all trees.
showRootHandles(false) only operates on the root node as far as I can see.
Thanks
I need to remove rootHandles from some trees in the application.
So, I can't set a general UIDefault or something like that to affect all trees.
showRootHandles(false) only operates on the root node as far as I can see.
Thanks
jtree.setShowsRootHandles( false);
and if u want not to show root node then
jtree.setRootVisible(false );
jtree.setRootVisible(false
try property Tree.showsRootHandles
ups sorry, i didn't read, that you _don't_ want to set the property :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.