search in JTree

To search for a node in my tree, given a path, I iterate over all the DefaultMutableTreeNodes starting at the root till I find nodes matching criteria and I walk down the tree.Is there a better, more efficient way to search for tree nodes?thx
[263 byte] By [tsca] at [2007-11-27 5:24:32]
# 1
no.sun provides two methods:DefaultMutableTreeNode.depthFirstEnumeration orDefaultMutableTreeNode.breadthFirstEnumeration that's itregards testalucida
testalucidaa at 2007-7-12 11:50:44 > top of Java-index,Desktop,Core GUI APIs...