🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #200

BorderLayouts, FlowLayouts (and ColumnLayouts?) problem

#200
From: Gareth Boden
Date: Mon, 24 May 1999 00:00
17 lines
1469 bytes
It seems to me that the Java way of doing layouts is flawed with respect to
flowing layouts. If you have a load of buttons that you want to appear, for
example, at the bottom of a window (and you want them all to fit, regardless
of how wide the window is) you would normally think a FlowLayout in the
SOUTH position of a BorderLayout is the way to go.

However, if you do that, the preferred size of the FlowLayout is very wide
and not very high, so the SOUTH part of the BorderLayout ends up as wide as
your window and not very high, so your buttons don't fit. Grids are no good,
since you don't necessarily know how many rows and columns you want, so
where do you go from there?

I'm sure people must have come up with lovely workarounds for this problem,
so it'd be very nice if you'd be kind enough to share your wisdom.

Regards,
Gareth
Technical Details
Message-ID: <7ic099$qg523@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,1badfe803aa1f1df,start
X-Google-Attributes: gid111d45,public
X-Google-Thread: f74b3,1badfe803aa1f1df,start
X-Google-Attributes: gidf74b3,public
From: "Gareth Boden" <Gareth.Boden@cenes.co.uk>
Subject: BorderLayouts, FlowLayouts (and ColumnLayouts?) problem
Date: 1999/05/24
Message-ID: <7ic099$qg523@forums.borland.com>
X-Deja-AN: 481564175
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing,borland.public.jbuilder.java.language
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0