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!

Why is "extends JFrame implements ActionListener" a bad design decision?

807580Dec 28 2009 — edited Dec 28 2009
Hey,

I am studying Advanced Development in my final year at university, now revising for my exams. I have been given a set of questions to answer - one of them being the above question. Does anyone know the answer to this, or can someone point me in the right direction to find the answer? I think it has to do with the fact that all the variables / controls inside the JFrame are accessible to the action listener, but I am not entirely sure why.

Any help would be greatly appreciated.

Regards,

Richard
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 25 2010
Added on Dec 28 2009
3 comments
368 views