Skip to main content

Arraylist based trees

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
sugir1987
Offline
Joined: 2012-01-17

hi all

i have to implement arraylist<node> base tree(one parent may have more than two children). i did not work with node can you help me to create the tree

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
imagero
Offline
Joined: 2003-11-18

What is wrong with DefaultMutableTreeNode?

bwillcott
Offline
Joined: 2007-06-01

Need more details....
How will it be used?
What will be the method of determining the parant/child relationship?
It's posible, that some form of database, may do the job.