🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Help with GridBagLayout manager

#9832
From: rwilkman
Date: Fri, 07 Jan 2000 00:00
56 lines
2849 bytes
Jeff:

This is the only one I know of.  Go here:

http://www.borland.com/techpubs/jbuilder/index3-w.html

and scroll down.  You can either run it across the web or download a
copy locally.

Our online docs, however, talk about converting and have some tips.  The
most common tip I give out is to use XY layout and use the alignment
tools to make everything line up correctly, be sized the same, etc. and
then convert to GBL.  You'll still have to tweak insets, weights, etc.,
to get things perfect.  I suspect you are trying to make the adjustments
by dragging; use the constraints editor instead (launch it from the
design surface and the editor will stay onscreen so you can see the
results with the Apply button).

-Rich

Jeff Marendo wrote:
> 
> Hello,
> 
> I'm going to have to walk away from my computer for a bit to cool down, but
> I have to ask for some help before I do.
> 
> I had a great website reference that explained very well how to use the
> GridBagLayout manager, but unfortunately I didn't bookmark it.  It explained
> how one should use the XYLayout manager and then convert to GridBagLayout.
> All that would be left would be some tweaking.  If anyone knows what site
> I'm talking about, please let me know.
> 
> I'm trying to create one panel using the GridBagLayout manager.  This panel
> has two rows.  The top row will have 7 columns (0-6).  The bottom row will
> have 12 columns (0-11).  I originally laid everything out in JBuilder3 using
> the XYLayout manager and then converted it using the GridBagLayout manger.
> The problem is that all of my components are not lined up properly in their
> assigned columns (i.e. many are hidden or partially covered up) within each
> row.  I tried to resize and adjust the components and the columns, but every
> time I get something in one row looking right all of the stuff in the other
> row is totally screwed up.
> 
> If anyone has any advice other than not to use GridBagLayout, which I'd love
> to if I could help it, please reply--especially if you know of any online
> tutorials that are usable.  Thank you.
> 
> Jeff

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

If you are reading this from a newsgroup post, don't send mail.
Technical Details
Message-ID: <38761BBD.73B606DD@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <85507g$rmg5@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,ecbc9a69fd2dad64
X-Google-Attributes: gid111d45,public
From: rwilkman <rwilkman@inprise.com>
Subject: Re: Help with GridBagLayout manager
Date: 2000/01/07
Message-ID: <38761BBD.73B606DD@inprise.com>
X-Deja-AN: 569606821
Content-Transfer-Encoding: 7bit
References: <85507g$rmg5@bornews.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