Re: How many warnings is too many?
- From: Chris Smith <cdsmith@xxxxxxx>
- Date: Wed, 14 Dec 2005 10:07:53 -0700
ricky.clarkson@xxxxxxxxx <ricky.clarkson@xxxxxxxxx> wrote:
> Thomas,
>
> > For normal uses
> > there is no point extending JPanel. But banning a component extending
> > JComponent is absurd.
>
> To my eyes, the main difference between JPanel and JComponent is that
> JPanel is opaque by default. I might have missed something. So I will
> read your text as if you said JPanel twice and omitted JComponent..
>
> What you say is true only if abnormal uses are justified. What are
> these abnormal uses?
There's a difference of intent that matters. JPanel is intended to be
used as a container for other components, and not contain a lot of logic
of its own. I'm certain that's what Thomas meant. No point in
extending when you're just going to add children... but there is a point
in extending if you're implementing a true custom component.
The fact that custom components sometimes extend JPanel, or that
JComponent is technically a container, is irrelevant.
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
.
- References:
- How many warnings is too many?
- From: Rhino
- Re: How many warnings is too many?
- From: Missaka Wijekoon
- Re: How many warnings is too many?
- From: Chris Smith
- Re: How many warnings is too many?
- From: Roedy Green
- Re: How many warnings is too many?
- From: Chris Smith
- Re: How many warnings is too many?
- From: Monique Y. Mudama
- Re: How many warnings is too many?
- From: ricky.clarkson@xxxxxxxxx
- Re: How many warnings is too many?
- From: Thomas Hawtin
- Re: How many warnings is too many?
- From: ricky.clarkson@xxxxxxxxx
- How many warnings is too many?
- Prev by Date: Re: A print() method in class Object will make things a lot simple
- Next by Date: Re: applet slow down
- Previous by thread: Re: How many warnings is too many?
- Next by thread: Re: How many warnings is too many?
- Index(es):
Relevant Pages
|