Traverse « JTree « Java Swing Q&A





1. JTree traversal    coderanch.com

2. visualize a Tree and tree traversal    coderanch.com

3. Breaking a JTree Traversal    coderanch.com

I am running a traversal of a JTree trying to find a certain node. When I do find that node I want to return true, indicating that I did in fact find it. The code below always returns false indicating to me that even though I return true when the item is found the loop continues to run. private boolean traverse(JTree ...