Article View: borland.public.jbuilder.java.swing
Article #10157Re: control size
From: enisoc
Date: Thu, 11 Nov 1999 00:00
Date: Thu, 11 Nov 1999 00:00
34 lines
1789 bytes
1789 bytes
in the gridbaglayout, controls are set to their minimum size (such as the width of the label of a button). i've simply avoided using the gridbag since it's so cumbersome, but it's possible to get some desired effects by messing with padding/insets of the cell and setting fill to horizontal or both. this should be fairly straitforward using the jbuilder GridBagConstraintsEditor (some names may be different since i'm using jbuilder2). if my memory serves me, i think the flow layout is the only one that honors the preferred size of components placed in it. hope this helps, Anthony David <David.Clark@qwest.com> wrote in message news:382B0D9A.9627D1F7@qwest.com... > 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:
<80fcq5$9lc20@forums.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: "enisoc" <anthonyy@surfree.com> Subject: Re: control size Date: 1999/11/11 Message-ID: <80fcq5$9lc20@forums.borland.com> X-Deja-AN: 547487487 References: <382B0D9A.9627D1F7@qwest.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing