File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JTree and XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree and XML" Watch "JTree and XML" New topic

JTree and XML

Dhanya Palanisamy
Ranch Hand

Joined: Oct 20, 2006
Posts: 61
Hi Friends,

I have an XML which queries database for some data. I have to display this XML using JTree. Since data is huge it takes lot of time to build and display the tree. Is there anyway the child nodes would get build from XML after we click the corresponding parent node, as i wont be requring to view all child nodes. Pls do help.

Brian Cole
Ranch Hand

Joined: Sep 20, 2005
Posts: 878
I'm not sure why you posted the same thing in two different Forums but, since the other one has some replies, the discussion should probably go there instead of here.

bitguru blog
I agree. Here's the link:
subject: JTree and XML
It's not a secret anymore!