🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Change Default GridBag Settings?

#9007
From: Paul Furbacher [TeamB]
Date: Tue, 30 May 2000 00:00
38 lines
2326 bytes
Joe Cunningham wrote:

>  Is there some way to change the way JBuilder implements a GridBagLayout?

Not that I know of.  However, are you using the GridBagLayout (GBL) 
constraints editor to its maximum advantage?  Activate it by selecting 
a component and right-clicking, not via the Property Inspector.  Then, 
either Ctrl-click on additional components that you want to share the
same setting, say Fill.  Then, set the desired Fill and press "Apply".

Continue in this manner of Ctrl-select, or Ctrl-unselect, setting 
sub-properties in common.  

I frequently do this when, for example, I want to line up a bunch
of labels with x pixel right margin, anchored to the EAST, etc.
"Apply", followed by a quick Ctrl-unselect of the labels, and a Ctrl-select
of all the entry boxes to WEST anchors, "Apply", and a lot alignment work
is finished without ever closing the GBL constraints editor.

You can spend a lot of time tweaking, but even on really complex
layouts, 
I don't feel as though I've wasted innumerable hours.  What seems to take
more time is figuring out just where that occasional invisible spacer
panel 
is needed to fine-tune the behavior when a frame is resized. 


Paul Furbacher (TeamB)


> For example, when in 'null' layout mode and I then switch to GridBagLayout,
> is there anyway I can stop JBuilder from making all my components default to
> a Fill Horizontal for a GridBagConstraint?  I am wasting innumerous hours
> switching this back and forth for each component after I have to monkey with
> the GridBag to expand properly or line up with other components (sometimes
> the designer is not so accurate).  Any help would be great ...
> 
> I am using JBuilder Pro 3.500.24.0 on a Windows NT 4.0, sp6
Technical Details
Message-ID: <39347B0B.DF49CFE0@home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <393447da@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5ec98bc69da452fe
X-Google-Attributes: gid111d45,public
From: "Paul Furbacher [TeamB]" <pnf@home.com>
Subject: Re: Change Default GridBag Settings?
Date: 2000/05/30
Message-ID: <39347B0B.DF49CFE0@home.com>
X-Deja-AN: 629281546
Content-Transfer-Encoding: 7bit
References: <393447da@dnews>
X-Accept-Language: en,pdf
Content-Type: text/plain; charset=us-ascii
Organization: Reverse Alchemy, Inc.
Mime-Version: 1.0
Reply-To: pnf@home.com
Newsgroups: borland.public.jbuilder.java.swing