Solved

Tree DataStructure in JAVA

Posted on 2001-08-23
9
221 Views
Last Modified: 2012-06-21
Which class provides tree data structure implementation in JDK(if any). If u could send some sample code to show operations on the tree, it would be great.


-TIA
Raghu
0
Comment
Question by:raghu_k_n
9 Comments
 
LVL 6

Expert Comment

by:kotan
ID: 6418004
0
 
LVL 92

Expert Comment

by:objects
ID: 6420166
You can use DefaultTableModel and/or DefaultMutableTreeNode
0
 

Author Comment

by:raghu_k_n
ID: 6420803
None of these seems to be useful to me. I want to have a structure which holds the tree kind of relationship for my objects.
0
 

Author Comment

by:raghu_k_n
ID: 6420882
None of these seems to be useful to me. I want to have a structure which holds the tree kind of relationship for my objects.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 6421189
Woops I meant to say DefaultTreeModel.
Sorry.
0
 
LVL 1

Expert Comment

by:chauhanvinit
ID: 6450868
Hi,
Try JGL Libraries from ObjectSpace Inc.
regards,
Vinit

0
 

Author Comment

by:raghu_k_n
ID: 6452111
Thanx vinit. I am not looking at any proprietry libraries.
In order to keep this question open, I am rejecting ur answer.

-Raghu
0
 

Author Comment

by:raghu_k_n
ID: 6452115
I think DefaultTreeModel solves my problem. Thanx Objects.

-Raghu
0
 
LVL 92

Expert Comment

by:objects
ID: 6452611
No worries.
Thanks for the points :)
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now