🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: which layout to choose from

#575
From: Lori M Olson [TeamB]
Date: Thu, 10 Feb 2005 04:31
44 lines
2304 bytes
Jonny Oenning wrote:

> Hi All,
> 
> I'm writing a "simple" maintenance type of program, such as customer
> maintenance.
> Image a couple of dozen fields spread over a screen in 2 or 3 columns.
> (cust-no, name, address, etc, etc..)
> 
> What would be the best layout to use in such instances? (or combination of
> panes / layout) ??
> 
> Thanks
> Jonny Oenning
> 
> 

If your dialog is simple enough, a combination of BorderLayout and 
GridLayout or BoxLayout in combination with sub-panels might work.

But, it might be better to just pull out the most versatile tool in the 
box and go straight for GridBagLayout.  I know that people who haven't 
taken the time to learn it properly really hate GridBag, but once you 
learn how it works, you can really make any dialog, no matter how 
complex, layout exactly the way you want.

-- 

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
     http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
     http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
     http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID: <420ae384@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <420ad870@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,23138f1862e1cbed
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 09 Feb 2005 21:31:01 -0700
From: "Lori M Olson [TeamB]" <javadragon@techie.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax;nscd1)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: which layout to choose from 
References: <420ad870@newsgroups.borland.com>
In-Reply-To: <420ad870@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 142.179.181.200
Message-ID: <420ae384@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1108009860 142.179.181.200 (9 Feb 2005 20:31:00 -0800)
Lines: 44
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail