• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help on JTree

Akhil Jain
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic