Article View: borland.public.jbuilder.java.swing
Article #11421Re: XYLayout to GridbagLayout ?
From: Tor Iver Wilhelmsen
Date: Fri, 28 May 1999 00:00
Date: Fri, 28 May 1999 00:00
12 lines
979 bytes
979 bytes
"Sohan Mendis" <sohan@maxtrak.com> writes: > I need to convert XYLayout to Gridbag programmatically. ie I have ( x,y, > width,height) . How should I do the conversion ? It's a bit complicated: You need to use every component's relative position (x,y) to determine what cell they go in, and then use no fill, no weights, northeast attachment and internal padding equal to the size minus the insets. It can be done (obviously, since JBuilder's designer does it), but why not use GBL in the first place?
Technical Details
Message-ID:
<u4skx4q2d.fsf@sds.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7ikpl8$55217@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,3e96a4cb16051986 X-Google-Attributes: gid111d45,public From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> Subject: Re: XYLayout to GridbagLayout ? Date: 1999/05/28 Message-ID: <u4skx4q2d.fsf@sds.no> X-Deja-AN: 483024345 Sender: towi@SDSA1761 References: <7ikpl8$55217@forums.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing