Recursive « JTree « Java Swing Q&A





1. Stringtemplate recursion (outputting a JTree)    stackoverflow.com

I have an application that makes use of trees to build a heirarchy of objects. At the moment it outputs simple XML like this

 <dir>
    <object/>
    ...

2. Tree Recursive problem    coderanch.com

3. How to recursively traverse JTree?    coderanch.com

Hi! There is JTree component that I want to fill from the database. New nodes can be dynamically added to this tree. I need a procedure that will recursively traverse a tree. My problem is that only second-level nodes are added to the root node, but other-level nodes are not created. I've included System.out.println to see the results and problems. Please, ...