Regarding JTree

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • flavourofbru
    New Member
    • May 2007
    • 48

    Regarding JTree

    Hi,

    I am presently trying to display an XML document as a tree structure.
    I am able to do it using JTree and SAX Parser.

    Now I would like to get the parents of all non-leaf nodes and display them as sub-trees.

    Does we have any function in JTree where I can retrieve the parents of non-leaf nodes and display them??

    Please help.

    Thanks!!
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by flavourofbru
    Does we have any function in JTree where I can retrieve the parents of non-leaf nodes and display them??
    Have a look at the Java API documentation for the JTree class and see for yourself
    that no such method exists. That doesn't forbid you to craft your own method for
    that purpose though.

    kind regards,

    Jos

    Comment

    Working...