well, here I am again. mind full of questions.

Here is the problem I am having:

I am building a tree structure. every time a user inserts or deletes a node, a JTree will reflect the change by displaying the structure.

more specifically, when a new node is inserted, it will be selected as the currentNode; and likewise, if a node is deleted, its parent will be selected as the currentNode.

I am using JTree, DefaultMutableTreeNode, and TreePath to achieve this.

my problem is that everytime I do an insert or delete, the jtree only expands to the currentNode, and the rest of the stuff is collapsed.

is there a quick method that I can use to expand all branches at once? I know there is a method called expandRow, but I must do it row by row, which can hinder the performance of the app.

thanks in advance.