Getting a tree library in Java?

I am trying to create a structure of type Tree, I have a root node, and then I can add children to the root directory of the node and continue the process. I'm not interested in sorting. All I want is a tree structure since I create an Org Chart.

Is there an exisitng java library that will allow me to add a root node, a child node or, for example, get a child of a node from a tree and then add children to these nodes. Or maybe get the whole leaf node from the tree.

Am I trying to avoid creating one on my own to save time? Any libraries you can offer will be very helpful.

Note. I do not use Swing or AWT components.

+4
source share
1

TreeModel Java . DefaultTreeModel node, node .

+2

Source: https://habr.com/ru/post/1536098/


All Articles