I mean, I am reading a certain hierarchy(not form a directory) and I want to represent it in a tree form.
Is there a thing like that?
Thanks.
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
posted
0
You can use the Tree classes from Swing even if you don't have a GUI. See if any implementation of TreeNode works for you, or make your own. If you get stuck, post some code and we'll try to bump you along.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Maha Hassan
Ranch Hand
Joined: Aug 02, 2005
Posts: 133
posted
0
Thanks all for reply,
I used the implementations of binary tree to create my tree (not binary). I just removed the normal left and right children with array list to have more than one child
Thanks all.
Maha
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.