Re: Layout question
- From: nukleus@xxxxxxxxxxxx (nukleus)
- Date: Tue, 30 Jan 2007 10:54:24 GMT
In article <1170129146.373308.103880@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, "Andrew
Thompson" <andrewthommo@xxxxxxxxx> wrote:
On Jan 30, 6:50 am, nukl...@xxxxxxxxxxxx (nukleus) wrote:
....
1. What would be the right way of approaching this
frame's layout?
Would it be to use different kinds of layouts for each
panel, or is it reasonable to use a gridbag for all
of them?
No. GBL is not the best layout for any variety
of things for which other layouts were defined.
GBL is not some 'magic pill' that can handle
all layouts.
(And as an aside, I thought you had gone over to
using nested layouts, with GBL where appropriate.
It now seems you are veering back to GBL!)
I doubt you will get GBL working reliably for you
before learning how a slew of the other layouts
work, and once you do that, you'll find that you
use GBL much less often.
Thanks. I did read one of your previous posts on
this very issue and I can see that at least in
case of one of my frames, it is all too true.
Others seemed to work out very nicely, I didn't
even expect it'll end up so good.
I'll try to work on replacing all the gridbags
to something else wherever possible. The only thing
is I would not like to use some proprietary layout
managers or things of that sort. Would like to stick
to standard ones, and, preferrably, not the "latest
and greatest" kind.
I just don't know enough about it and there are
various compatibility issues I'd like to avoid.
I wonder if you might give me a hint on how would
you layout that frame I described in my previous post.
What panels and what layouts would you use
and does the very idea of using nested layouts and
panels make sense?
It seems you'd want to use gridbag on the main frame
and create panels off to group similar things and
try to uses some other layout on each panel wherever
possible.
Thanks again.
Andrew T..
- Follow-Ups:
- Re: Layout question
- From: Andrew Thompson
- Re: Layout question
- References:
- Layout question
- From: nukleus
- Re: Layout question
- From: Andrew Thompson
- Re: Layout question
- From: nukleus
- Re: Layout question
- From: Ian Wilson
- Re: Layout question
- From: nukleus
- Re: Layout question
- From: Andrew Thompson
- Layout question
- Prev by Date: help me
- Next by Date: Re: JVM/Java memory footprint
- Previous by thread: Re: Layout question
- Next by thread: Re: Layout question
- Index(es):
Relevant Pages
|