Results 1 to 4 of 4
  1. #1
    Prog is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Question 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 :)

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,242
    Rep Power
    19

    Default Re: How to display tree graphically

    Moved from Advanced Java.

    Were you looking for javax.swing.JTree?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Prog is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default Re: How to display tree graphically

    I don't know what is it exactly.
    But does javax.swing.JTree help me ??

  4. #4
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: How to display tree graphically

    Quote Originally Posted by Prog View Post
    I don't know what is it exactly.
    But does javax.swing.JTree help me ??
    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

  1. Binary Tree Help - Find the largest sub-tree
    By joshhazel in forum New To Java
    Replies: 2
    Last Post: 01-30-2012, 02:08 AM
  2. representing a seat plan graphically
    By bitzz in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 08-29-2011, 09:21 AM
  3. Replies: 0
    Last Post: 04-04-2010, 07:40 AM
  4. Replies: 2
    Last Post: 02-20-2010, 08:19 PM
  5. how create array graphically
    By sunolinu in forum AWT / Swing
    Replies: 3
    Last Post: 02-12-2010, 07:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •