• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
please buy my thing and then I'll have more money:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic