• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Visualizing container hierarchy  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am looking for a way to visualize (or at least store in some vector of sorts) the container hierarchy of a java app I have created. Ideally I would like the result to include all levels of containment, i.e. the entire tree of such relationships.

The problem is that the classes I am referring to are self-made and to not extend any standard Java classes. The problem is that my classes are entirely self-made and do not extend any standard Java classes. Such tools as Vector and Container classes (which are part of AWT) are not available to my own classes.

Is there a (semi-) automatic way to generate this hierarchy? One example may be found at http://www.devx.com/tips/Tip/13099 but it assumes that classes are based on AWT.

Many thanks!
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I had your trouble I would consider using reflection. There is a tutorial that could get you started.
 
Bartender
Posts: 1817
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to JavaRanch!!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!