Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Visualizing container hierarchy

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1849
15
Eclipse IDE Spring VI Editor Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And welcome to JavaRanch!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic