Results 1 to 4 of 4
Thread: How to display tree graphically
- 04-29-2012, 09:51 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 2
- Rep Power
- 0
How to display tree graphically
Hi,
Please, I have an assignment that requires implementation of five different types of trees and displaying them graphically.
Someone told me that there is a library or a function that helps in displaying any tree graphically, I searched for it a lot but I could not find it.
Can you please give me a hint about it ? or anything that helps me in doing this ?
Thanks in advance :)
- 04-29-2012, 10:06 PM #2
Re: How to display tree graphically
Moved from Advanced Java.
Were you looking for javax.swing.JTree?
dbIf you're forever cleaning cobwebs, it's time to get rid of the spiders.
- 04-29-2012, 10:17 PM #3
Member
- Join Date
- Apr 2012
- Posts
- 2
- Rep Power
- 0
Re: How to display tree graphically
I don't know what is it exactly.
But does javax.swing.JTree help me ??
- 04-29-2012, 10:48 PM #4
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,638
- Rep Power
- 13
Re: How to display tree graphically
Depends upon the tree, which you would need to elaborate on for a more defined answer. For JTree, see How to Use Trees (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components) (the top hit in google - your first stop shop for researching questions like this)
A more comprehensive library for graph/tree display is JUNG
You could also draw them yourself using Java2D, which isn't too hard depending upon how complex you need to draw them.
Similar Threads
-
Binary Tree Help - Find the largest sub-tree
By joshhazel in forum New To JavaReplies: 2Last Post: 01-30-2012, 03:08 AM -
representing a seat plan graphically
By bitzz in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 08-29-2011, 10:21 AM -
Data Structures(Binary Search Tree to AVL Tree)ASAP pls
By jfAdik in forum Forum LobbyReplies: 0Last Post: 04-04-2010, 08:40 AM -
how i can to create tape of turing machine graphically
By sunolinu in forum Java 2DReplies: 2Last Post: 02-20-2010, 09:19 PM -
how create array graphically
By sunolinu in forum AWT / SwingReplies: 3Last Post: 02-12-2010, 08:34 AM
Bookmarks