tags:

views:

307

answers:

1

I have a JTree with multiple "roots" (Of course, I actually have an invisible real root with multiple children).

The nodes expand and collapse on double click, but there's no visual indication that you can do this as there is no expander icon.

This is made worse by the fact that the tree is collapsed by default, but expanding the "roots" doesn't really help, as each has many children and it would look cluttered.

Is there a way to display the expander icons without making the real (and utterly valueless) root visible?

Any other suggestions to make the display clearer welcome.

+3  A: 
VonC
Perfect, thanks! I totally missed that from the docs - probably because they're not actually "root handles" at all.
Draemon