dcsimg

How can I get the Root Node in JTree?

Schwann Paul

If you have

JTree t = ...;

You can simply use

t.getModel().getRoot();