🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: FlowLayout

#9344
From: rwilkman
Date: Mon, 17 Apr 2000 00:00
61 lines
2667 bytes
Erik:

Well, VerticalFlowLayout would do this and it's a tiny class that you
have the right to redistribute for free, but you don't want to use 3rd
party layouts....

You can do it with GBL, as mentioned (seems like overkill in such a
simple case).  From you pick I see three containers.  A master panel
with BorderLayout set.  A button panel (with verticalflow or gbl) and a
bunch of buttons set in the West of your master panel.  A plain panel
set in the Center of your master panel.

-Rich

Erik Berry wrote:
> 
>   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   |                          |
> ----------------------------------------
> 
>   In other words, I want several buttons centered in a left aligned
> panel along the edge of a frame.  It always stacks the buttons in a
> horizontal line right now, like this:
> 
> ----------------------------------------
>  Button1 Button 2 Button3 etc  |       |
>                                |       |
>                                |       |
>                                | Panel |
>                                |       |
>                                |       |
>                                |       |
> ----------------------------------------
> 
>   I'd rather not use any third-party LayoutManagers and GridLayout seems
> to resize the button cells - spacing them as one expands the frame -
> which isn't desired.
> 
> Thanks,
> Erik

-- 
=====
Rich Wilkman
Senior Quality Assurance Engineer
JBuilder Team

If something in this post looks like an opinion, walks like an
opinion and quacks like an opinion, it's mine and not that of
my employer.

If you are reading this from a newsgroup post, don't send mail.
=====
Technical Details
Message-ID: <38FB4102.58FA289E@inprise.com>
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: rwilkman <rwilkman@inprise.com>
Subject: Re: FlowLayout
Date: 2000/04/17
Message-ID: <38FB4102.58FA289E@inprise.com>
X-Deja-AN: 612309118
Content-Transfer-Encoding: 7bit
References: <MPG.135f2033c15ad4919896a9@newsgroups.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing