🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18520

Re: Changing constraints at run-time?

#18520
From: Greg Hamer
Date: Thu, 04 Jun 1998 00:00
26 lines
1806 bytes
Note that the only layoutManagers that have a setContraints method are GridBagLayout
and borland.jbcl.layout.PaneLayout; for any
others, you need to remove the component and then re-add it (for many layoutManagers
you only need to re-add it) with the new constraint. Be sure to call validate on the
container after doing any of the above  in order to see your results.

Tad Frysinger wrote:

> In article <35725ecf.5079834@forums.inprise.com>, dsarrazin@cyberus.ca
> says...
> > I'm trying to figure which method/property lets me change the constraints that
> > I've assigned at designed time.  The Inspector has an item called constraints,
> > but that doesn't seem to exists within the actual code (ie it does not appear
> > to be a property).  How can I do this?
> >
> > -D
> > Aquarius Creations
> > dsarrazin@cyberus.ca
> > http://www.cyberus.ca/~dsarrazin/Homepage1.html
> >
> Constraints are typically their own object that you update using the
> layout manager's setConstraints() method.  It is best if you do a set
> using a newly created paneconstraints object (I think several managers
> actually pass you a copy of the paneconstraints object, not the actual
> object itself).
Technical Details
Message-ID: <3576D918.D20D260B@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35725ecf.5079834@forums.inprise.com> <MPG.fdc6b7179c9b28c98981f@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b82ddb6a7062ba7a
X-Google-Attributes: gidf74b3,public
From: Greg Hamer <ghamer@inprise.com>
Subject: Re: Changing constraints at run-time?
Date: 1998/06/04
Message-ID: <3576D918.D20D260B@inprise.com>
X-Deja-AN: 359538761
Content-Transfer-Encoding: 7bit
References: <35725ecf.5079834@forums.inprise.com> <MPG.fdc6b7179c9b28c98981f@forums.borland.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language