Dear Jamsheer,

1.      One way to expan a JTree is using JTree.expanRow() method.

2.      Another way is to ask the tree to give last path component on the current
selection and open all the nodes till that path. This can be done using code
below

        DefaultMutableTreeNode oCurrentNode =
(DefaultMutableTreeNode)(oCurrentSelection.getLastPathComponent());
        _oTree.scrollPathToVisible(TreePath);

Comments are welcome.

rgrds,
amit.

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to