• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need help on JTree

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

regards
Akhil
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic