H
Hendrik Maryns
Reading books about software engineering and design patterns, I adopted
the axiom ‘prefer delegation over inheritance’. However, I see that the
Swing tutorials recommend to inherit from JFrame. The examples do it as
well, and in fact, a lot of apps I see do this.
Is there a reason for this, or is this just old-fashioned thinking? Am
I missing something? My app which *has* a JFrame works just fine.
H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFH+iYee+7xMGD3itQRAqfIAJ0UMl+8WXh5UwBWuni1V/BMrYVk2QCfa9ju
kkZ71dIDFYxB9g89TspVrkA=
=4fIe
-----END PGP SIGNATURE-----
the axiom ‘prefer delegation over inheritance’. However, I see that the
Swing tutorials recommend to inherit from JFrame. The examples do it as
well, and in fact, a lot of apps I see do this.
Is there a reason for this, or is this just old-fashioned thinking? Am
I missing something? My app which *has* a JFrame works just fine.
H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFH+iYee+7xMGD3itQRAqfIAJ0UMl+8WXh5UwBWuni1V/BMrYVk2QCfa9ju
kkZ71dIDFYxB9g89TspVrkA=
=4fIe
-----END PGP SIGNATURE-----