Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Drawing a tree inheritance

807588Mar 24 2009 — edited Mar 27 2009
Hello,

I would like to know if there is a sample code that can draws a tree showing the inheritance among classes.
I have a vector(vec) that contains classes in the following order:

vec[0] contains a first class
vec[1] inherits from vec[1]
vec[2] contains another class( or it might also be the same as vec[0] or vec[1])
vec[3] inherits from vec[2]
etc...

i managed to find the root in that vector( well it is easy, it is the element that exclusively has even index)
i would like to draw a tree showing the inheritance.

is there an algorithm?

thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 24 2009
Added on Mar 24 2009
16 comments
279 views