Re: Layout question



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.

.



Relevant Pages

  • Re: GridBagLayout ?
    ... I've just spent a good couple of work days struggling with layouts. ... The GBL worked fine just as long as I didn't want it to do anything too ... a GridBagLayout. ... After quite a while of fiddling around with extra panels and preferred ...
    (comp.lang.java.gui)
  • Re: Swap two columns
    ... Check out some of the other layouts on that site too - very ... is needed to give the look of panels having 1 pixel borders, ... I'm slowly getting a better understanding of the CSS and how it works; ... some of it is included to make the layout work with IE 5 & 6, ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Layout question
    ... Would it be to use different kinds of layouts for each ... panel, or is it reasonable to use a gridbag for all ... No. GBL is not the best layout for any variety ...
    (comp.lang.java.programmer)
  • Re: GridLayout mit variablen Spaltenbreiten?
    ... Viele Entwickler finden den Umgang mit dem GBL kompliziert. ... wieviel leichter Entwickler ... füllt in einem zweiten Schritt in dieses Gitter Komponenten. ... Der Aufwand zum Bauen eines mentalen Layouts hängt damit nicht ...
    (de.comp.lang.java)
  • Re: Laying out a form in java
    ... with other core layouts) ... by a GBL. ... layouts that would satisfy the requirements of the ... Both of them pretty unusual requirements, ...
    (comp.lang.java.programmer)