🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How: Adding JLabels of equal size to a FlowLayout

#12399
From: Greg Hamer
Date: Thu, 07 Jan 1999 00:00
32 lines
1508 bytes
Rather than fight it, just put the JLabels into a container set to
GridLayout, and then put that container into a container set to FlowLayout.
All the JLabels will be the same size without being to big.

Mario Christ wrote:

> Hi,
>
> I want to add JLabels to a FlowLayout which have exactly the same
> vertical size, even if they do not have the same Text.
>
> However, an added JLabel will not appear with the length I have set
> using JLabel#resize(), JLabel#setMinimumSize or JLabel#setMaximumSize().
> Theese method only have an effect in a GridLayout.
>
> How can I add JLabels of equal size to a FlowLayout? Can you help?
>
> Thank you a lot.
>
> Mario, Berlin
>
> PS: Please sent your answer to my mailbox as well.
>
> --
> Mario Christ
> Business Student
> ICQ: #17919799
> Home: +49 30 5500168
> Mobile: +49 179 2901686
> Email: mario.christ@gmx.net
> Homepage: http://www2.rz.hu-berlin.de/~h0444xat
> --
Technical Details
Message-ID: <36956782.8660992@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36955811.90A05313@rz.hu-berlin.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,71f628faa27727a,start
X-Google-Attributes: gid111d45,public
From: Greg Hamer <ghamer@inprise.com>
Subject: Re: How: Adding JLabels of equal size to a FlowLayout
Date: 1999/01/07
Message-ID: <36956782.8660992@inprise.com>
X-Deja-AN: 430033611
Content-Transfer-Encoding: 7bit
References: <36955811.90A05313@rz.hu-berlin.de>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing