tags:

views:

36

answers:

1

first time use JTree. Just wondering is it possible to have more than one top level TreeNodes? thanks

+5  A: 

There can only be one root node. However you can set the JTree's rootVisible property to false, and then the first level children will be shown as top level nodes.

Zed
This way it looks like a forest, even though it isn't. I have had to do this before.
aperkins