JTree and xml.. please help
Hi,
I have JApplet, it connects to database, reads it and stores some data in my data structure, then it creates tree from the data which it has read.I want that when a user clicks on any JTree node then it should display all the information about that node in particular format,
so what should i use to display that? xml ...?
is yes, then any help to proceed with it..
Thanks
[421 byte] By [
kunaljain] at [2007-9-26 2:34:02]

> Hi,
> I have JApplet, it connects to database, reads it and
> stores some data in my data structure, then it creates
> tree from the data which it has read.I want that when
> a user clicks on any JTree node then it should
> display all the information about that node in
> particular format,
> so what should i use to display that? xml ...?
> is yes, then any help to proceed with it..
> Thanks
To clarify XML is not a format for displaying things. It is a format for transfering data. By applying stylesheets to the XML you can make nice displays. I think the most common use for displaying XML with stylesheets is in browsers.
So the question you are asking is kind of odd. If you already have a JTree populated you need to apply a Renderer to it. XML isn't really applicable. Anyone diagree?