Skip to Main Content

New to Java

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!

JFrame subclassing

843789May 23 2010 — edited May 24 2010
On this forum some time ago, I think I remember the comment: "Do not subclass unless you change the behavior of the parent class".

That makes sense to me. Yet, in many tutorials I see classes that subclass JFrame and do not change the JFrame behavior. More generally, subclassing while not changing behavior is poor OOP and not the proper use of inheritance, right? This is valid criticism? The JFrame subclassing seems only to be done for convenience?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2010
Added on May 23 2010
5 comments
440 views