Link to home
Start Free TrialLog in
Avatar of richard_fairall
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
Avatar of Naeemg
Naeemg

jtree.setShowsRootHandles(false);
and if u want not to show root node then

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
Avatar of stephan_zehnder
stephan_zehnder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial