This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Just had a quick look at the documentation. I would say, you don't have to recursively iterate the tree because JDOM has a method (getDescendants) that does that for you. And you could pass it a Filter -- most likely an ElementFilter -- that would just choose the Element(s) you were looking for.
Joined: Jul 31, 2003
Thanks for the response ,
can I get JTree Element directly by providing TreePath object to the JTREE ? say the tree is :
and i want to get the JTree element at : ["Cars" , "Volvo" , "s80" , "16v 2500"] ? Thank you