>> Layouts (same as you would use in AWT).
>
>I would say the opposite.
...
I would say..
>Choose a null layout ...

Signature
Andrew Thompson
http://www.athompson.info/andrew/
> isionset wrote:
> ..
[quoted text clipped - 20 lines]
> Can you show code that can make an 11x11 grid of
> components, from a null layout,
No you use layout managers for components.
I said *not* to use components.
You simply draw on the Graphics object.
> and be x-plat and robust
> through different Java versions, screen sizes and default font
> sizes? More simply than the code I posted?
It isn't just about simplicity, but it isn't much more complex and certainly
it is a more capable and extendable approach.
It is the way anything more than a trivial game board style app is done.
If you want screen size compatibility all you do is scale the graphics
object, a few lines of code for that, and a few more to scale mouse event
Points.
Your component approach is limited and not as xplatform as you think. You
will have images on these components, and they are a fixed size, so then
you'll need to scale them anyway, all of a sudden you've got a mish mash of
components and painting. It really does end up a real mess.
To be honest there are a host of other reasons I've forgotten, it was a
while ago.
Like I said a component approach is fine if it really is very simple and the
OP's intents may well be just that. But real code develops and then it's a
bad choice.
> (And yes, that is more than simply a philosophical
> question - if the answer is 'yes' - back it up with code).
No. I explained how it would be done and that is sufficient, if the OP
wants a detail clarifying I'm more than happy to oblige if possible.

Signature
Mike W
Andrew Thompson - 27 May 2007 15:55 GMT
>> ..
...
>> Can you show code that can make an 11x11 grid of
>> components, from a null layout,
>
>No you use layout managers for components.
>I said *not* to use components.
>You simply draw on the Graphics object.
And if the components use textual representations?
Did your null layout account for that? If so, it is sounding
like it had a complexity justifying being wrapped in a
layout manager.
>> (And yes, that is more than simply a philosophical
>> question - if the answer is 'yes' - back it up with code).
>
>No. I explained how it would be done and that is sufficient, if the OP
>wants a detail clarifying I'm more than happy to oblige if possible.
Puhh.. much as I thought. All puff, no guff.
Same as the usual 'use a null layout' advocates.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Andrew Thompson - 27 May 2007 16:04 GMT
>>> ..
>...
[quoted text clipped - 6 lines]
>
>And if the components
*Or* the non-component 'visual representations'
of things representing the 121 grid ..things.
>...use textual representations?
...

Signature
Andrew Thompson
http://www.athompson.info/andrew/
visionset - 27 May 2007 16:56 GMT
>>> (And yes, that is more than simply a philosophical
>>> question - if the answer is 'yes' - back it up with code).
[quoted text clipped - 4 lines]
> Puhh.. much as I thought. All puff, no guff.
> Same as the usual 'use a null layout' advocates.
I am *not* a 'use null layout advocate'.
I am totally pro layouts and need a very good reason not to use one.
It is just that this is such a case, if it is to become more elaborate in
future.
I don't think I've ever used a null layout in a container that has contained
components.
And I think that makes me pro layout managers.

Signature
Mike W
Brandon McCombs - 27 May 2007 17:55 GMT
>>> ..
> ..
[quoted text clipped - 16 lines]
> Puhh.. much as I thought. All puff, no guff.
> Same as the usual 'use a null layout' advocates.
All puff, no guff? Where is *your* code to backup your claim that
components are the way to go instead of drawing on the Graphics object?
Andrew Thompson - 27 May 2007 18:06 GMT
>...Where is *your* code ....
It was so short, someone of limited attention span might have
missed it. But please *try* to pay attention, Brandon. Your
posts are amusing, but they waste bandwidth.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Brandon McCombs - 30 May 2007 01:40 GMT
>> ...Where is *your* code ....
>
> It was so short, someone of limited attention span might have
> missed it. But please *try* to pay attention, Brandon. Your
> posts are amusing, but they waste bandwidth.
I'd prefer amusing posts over annoying. It's a good thing you cover the
annoying posts so I can concentrate on the amusing ones.
Lew - 30 May 2007 14:52 GMT
>>> ...Where is *your* code ....
>>
[quoted text clipped - 4 lines]
> I'd prefer amusing posts over annoying. It's a good thing you cover the
> annoying posts so I can concentrate on the amusing ones.
I think the point was that Andrew did provide an example, and was responding
to the direct challenge of "where is *your* code?" Furthermore, he was making
the point that the answer is simple and brief, a relevant point to the
discussion. I notice that Andrew was not the first to go /ad hominem/ in the
exchange.
Isn't there a name for the rhetorical device where you challenge someone, then
make them wrong for responding in kind? Oh, yeah - flamebaiting, but I was
sure there was a more formal name for it.

Signature
Lew