Expanding certain path to certain node in a JTree

Discussion in 'Java' started by arun.hallan@gmail.com, Jan 8, 2005.

  1. Guest

    Hi,

    My program involves adding a node to another node in a JTree. Because i
    need to do other operations too, the program takes the whole jtree, and
    builds up a new node structure including the node just added.

    The before and after trees are exactly the same apart from the new node
    just added.

    What i need to do is note which node has been selected before the new
    node has been added (i.e. the parent node of the node just added), and
    then when the operation has been done, expand the tree to this node.

    I've tried everything from these forums etc - i think im having
    problems because the JTree after the operation is effectively a new
    tree.

    Can anyone help?
     
    , Jan 8, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,468
  2. Tim
    Replies:
    2
    Views:
    4,510
  3. 6e

    expanding a Jtree...

    6e, Oct 7, 2005, in forum: Java
    Replies:
    2
    Views:
    1,383
    Roedy Green
    Oct 7, 2005
  4. Tjerk Wolterink
    Replies:
    2
    Views:
    1,437
    Dimitre Novatchev
    Aug 24, 2006
  5. jumpz
    Replies:
    3
    Views:
    627
    Jean-Baptiste Nizet
    Nov 12, 2007
Loading...

Share This Page