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