Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Class Hierarchy of JavaFX

ChristophTMar 11 2014 — edited Mar 15 2014

I got a question regarding the class architecture of JavaFX. Actually it should follow somehow the design pattern named composite looking this way http://en.wikipedia.org/wiki/Composite_pattern .

However if I want to draw the composite pattern of the JavaFX package I end up somehow this way:

It seems like I can add children to Buttons or Labels. This was also possible with SWING. Why wasn't this repaired? Is this a feature? On the other side Window and Stage are now outside of the pattern. Actually they should be Parents I think. Why is this designed this way?

Hope someone can light me up. Thank you very much for your answers in advance.

This post has been answered by jsmith on Mar 11 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2014
Added on Mar 11 2014
2 comments
1,228 views