🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: FlowLayout

#9322
From: Tor Iver Wilhelmsen
Date: Thu, 13 Apr 2000 00:00
17 lines
1204 bytes
Erik Berry <eb@techie.ZZZcom> writes:

>   Is there a way to convince FlowLayout or one of the other Java 1.1 (I 
> don't see an AWT newsgroup) LayoutManagers to do the following:
> 
> ----------------------------------------
>   Button1   |                          |
>   Button2   |                          |
>   Button3   |        Panel             |
>   Button4   |                          |
>   Button5   |                          |
>   Button6   |                          |
> ----------------------------------------

GridBagLayout is your friend: The buttons end up at WEST with x=0, and
the panel in a cell with x=1 and rowheight=your number of buttons, and
probably fill=BOTH and weightx and weighty both 1.0.
Technical Details
Message-ID: <uitxmo30f.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MPG.135f2033c15ad4919896a9@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,65f027a49ffb0fdc
X-Google-Attributes: gid111d45,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: FlowLayout
Date: 2000/04/13
Message-ID: <uitxmo30f.fsf@sds.no>
X-Deja-AN: 610566683
Sender: towi@SDSA1761
References: <MPG.135f2033c15ad4919896a9@newsgroups.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing