How can I change the way nodes and leaves are sorted (displayed) on a JTree?

Scott Stanchfield

This completely depends on the TreeModel you're using.

The TreeModel determines which nodes are children of which other nodes, as well as the order of those child nodes.

I'd recommend that you create a custom tree model that can present its data in different orders
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact