> Sorry but did not find answer there but it seems to be so that code like
> below:
[quoted text clipped - 7 lines]
> ((BasicTreeUI) treeUI).setCollapsedIcon(null);
> }
Which "thing" are you trying to hide? If you want to hide the control on
the very left that expands/collapses the branches, then you use
setShowsRootHandles. If you want hide the folder/file icons that are
rendered for each node, then your code is a solution for that.
Dan.

Signature
Daniel Dyer
http://www.uncommons.org
Richie Williams - 25 Oct 2007 17:57 GMT
On Thu, 25 Oct 2007 17:33:56 +0100, Richie Williams
<richie.williams@mailnox.com> wrote:
> Sorry but did not find answer there but it seems to be so that code like
> below:
[quoted text clipped - 7 lines]
> ((BasicTreeUI) treeUI).setCollapsedIcon(null);
> }
>Which "thing" are you trying to hide? If you want to hide the control on
>the very left that expands/collapses the branches, then you use
>setShowsRootHandles. If you want hide the folder/file icons that are
>rendered for each node, then your code is a solution for that.
>
>Dan.
Hello,
Yep I was using hiding for the latter situation you mentioned.
In my case those collapse icons were not suitable for GUI
because they looked peculiar in my LookAndFeel.
I handle folders with folder open / close icons.
Of course I also changed the color or the lines connecting
each node to their parents.
Seems good now!
Cheers!