This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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