Results 1 to 2 of 2
  1. #1
    jperson is offline Member
    Join Date
    Jan 2010
    Posts
    61
    Rep Power
    0

    Default get all elements in JTree

    I have a problem on my app <JTree>, i have a JTree like this

    root
    x1
    x1,1
    x1,2
    x2
    x2,1
    x2,2


    now i want to iterate through all element x1,x2 and their childs and get it's value

    output like: parent:x1,childs:x1,1|x1,2 parent:x2,childs:x2,1|x2,2

    i need help please ?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    What have you tried and what specifically are you having trouble with?

    Java Code:
    public void useRecursion() {
        if (notDone) {
          useRecursion();
       }
    }

Similar Threads

  1. Jtree
    By yoga in forum AWT / Swing
    Replies: 1
    Last Post: 02-09-2011, 04:21 PM
  2. Jtree
    By yoga in forum AWT / Swing
    Replies: 0
    Last Post: 02-09-2011, 10:31 AM
  3. Jtree Help
    By miladirooni in forum New To Java
    Replies: 1
    Last Post: 10-28-2009, 01:00 AM
  4. zip to JTree
    By icsbcn in forum AWT / Swing
    Replies: 8
    Last Post: 09-01-2009, 05:26 PM
  5. Move JTree item to another JTree.
    By Melki in forum AWT / Swing
    Replies: 8
    Last Post: 07-09-2009, 12:59 PM

Posting Permissions

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