dynamic tree structure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • windx
    New Member
    • Mar 2008
    • 4

    #1

    dynamic tree structure

    hi,
    iam lacking idea in using dynamic tree structure which will be generated based on the data from the database.
    can anyone guide me in this logic.

    regards
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by windx
    hi,
    iam lacking idea in using dynamic tree structure which will be generated based on the data from the database.
    can anyone guide me in this logic.

    regards
    If you know the logic parent/child relationships have a look at the JTree class.

    kind regards,

    Jos

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      Originally posted by JosAH
      If you know the logic parent/child relationships have a look at the JTree class.

      kind regards,

      Jos
      Indeed: http://java.sun.com/docs/books/tutor...ents/tree.html

      The initial question was too vague (hint, hint) but allow me to also point about that even if the application of tress is non-GUI in nature, Model classes like DefaultMutableT reeNode come in handy!

      Comment

      Working...