aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Need help on JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Need help on JTree" Watch "Need help on JTree" New topic
Author

Need help on JTree

Akhil Jain
Ranch Hand

Joined: Oct 14, 2004
Posts: 74
Hi guys,

I am really in a desperate need of getting this thing work.
I want to create a Jtree with object Details.
Something like, i can pass any object and that tree should be able to show all its details using java reflection.

can someone please help me out with this.
i have done some coding, but not bale to instantiate few objects inside an object and so on.

sample code is as follows, which can give you fair idea of what i am trying to do here. Need you support on this, otherwise i am gone.



Guys, pleae help me out with this...i want this code to handle any damn object it is passed on to create tree....no matter contructors are protected, private or anything, object passed can contain n-level objects in them and i should be able to show each one of them properly in tree form something like when you debug an object at runtime and in debug window you come to see all its properties, as well as properties of all the objects which it holds.

Object which will be supplied to create Jtree, is a serialized object, whcih is persisted in a file, so basically i have to read that object from a file and show its state graph with all the fields, their names, their values and so on.

regards
Akhil


-------------------------------<br />you can't move ahead, unless you try for it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help on JTree