Article View: borland.public.jbuilder.java.swing
Article #10065Re: control size
From: Greg Hamer
Date: Thu, 11 Nov 1999 00:00
Date: Thu, 11 Nov 1999 00:00
31 lines
1737 bytes
1737 bytes
if you set the fill to horizontal and play with the insets, and you have another control such as a label that will be the thing determining the width of the column, the control with data will not want to be different sizes. The trick is to have some other cell in the column be the one that determines the width of the column so that you can specify the field that changes to be small (0 width) but have the fill make it large. You can add a blank label to the column and give it width till it is the cell that determines the columns width if there is no other good candidate in the column David wrote: > Good day - > > Using JBuilder3 on NT - > > I have a form that uses GridBagControl to place it's controls > (JTextField, JComboBox, etc). I set the width to something like 75 in > the properties editor. In my code, I initialize the field with a value > (date or something), which increases the size of the control. If I > clear the field, then the control resizes smaller. Is there anyway to > keep controls the same size regardless of data (if any) they may > contain? > > Thanks in advance for your help. > > Gratefully, > > David > > david.clark@qwest.com
Technical Details
Message-ID:
<382B47B6.B8917751@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<382B0D9A.9627D1F7@qwest.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,9479cb34c83b2e21 X-Google-Attributes: gid111d45,public From: Greg Hamer <ghamer@borland.com> Subject: Re: control size Date: 1999/11/11 Message-ID: <382B47B6.B8917751@borland.com> X-Deja-AN: 547517321 Content-Transfer-Encoding: 7bit References: <382B0D9A.9627D1F7@qwest.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