Is there any controls for tree view in JAVA

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ursskmdali
    New Member
    • Nov 2007
    • 10

    Is there any controls for tree view in JAVA

    Hi.. All
    I know Core Java. I just want to know is there any built-in controls for implementing tree view control in JAVA. I am currently working on C#. I just want to confirm that is it easy to develop tree control in JAVA.

    Thanks
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by ursskmdali
    Hi.. All
    I know Core Java. I just want to know is there any built-in controls for implementing tree view control in JAVA. I am currently working on C#. I just want to confirm that is it easy to develop tree control in JAVA.

    Thanks
    Yep, there's a JTree object (read the API documentation); you can build e.g.
    folder views with it but entirely different applications are possible with it as well.
    (personally I use it to display a dedicated system with a bunch of color reading
    sensors in it). It's a convenient component.

    kind regards,

    Jos

    Comment

    • jashland
      New Member
      • Dec 2007
      • 2

      #3
      There are some really good JTree tutorials out there - the actual implementation for custom JTree stuff can get really nightmareish. One of my recent projects the custom JTree stuff ended up dwarfing a lot of the other code in the project.

      Good Sun tutorial: http://java.sun.com/docs/books/tutor...ents/tree.html

      One of the resources that really helped me understand JTree implementations (aside from the Javadocs obviously) was dynamic tree loading:



      Hope this helps!

      -Jeff

      Comment

      Working...