From: Marcin Rzeźnicki on
Hi all,
Is there a way to specify minimum form size using grid bag? I set
minimum sizes on components I don't want to be resized below certain
size, but it does not seem to respect it whatsoever. I am not posting
code 'cause it is generated by Net Beans.
From: Knute Johnson on
Marcin Rzeźnicki wrote:
> Hi all,
> Is there a way to specify minimum form size using grid bag? I set
> minimum sizes on components I don't want to be resized below certain
> size, but it does not seem to respect it whatsoever. I am not posting
> code 'cause it is generated by Net Beans.


Play with my GridBagLayout tester program,

http://rabbitbrush.frazmtn.com/gridbagtester.html

Use the sample layout #3 and right click on a component and set the
minimum size, then grab the lower right corner and squeeze the
components. You can get a good idea of how GBL works with minimum sizes
playing with it.

--

Knute Johnson
email s/nospam/knute2009/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
From: Marcin Rzeźnicki on
On 25 Paź, 05:13, Knute Johnson <nos...(a)rabbitbrush.frazmtn.com>
wrote:
> Marcin Rzeźnicki wrote:
> > Hi all,
> > Is there a way to specify minimum form size using grid bag? I set
> > minimum sizes on components I don't want to be resized below certain
> > size, but it does not seem to respect it whatsoever. I am not posting
> > code 'cause it is generated by Net Beans.
>
> Play with my GridBagLayout tester program,
>
> http://rabbitbrush.frazmtn.com/gridbagtester.html

Thanks

From: Marcin Rzeźnicki on
On 25 Pa¼, 12:50, Marcin Rze¼nicki <marcin.rzezni...(a)gmail.com> wrote:
> On 25 Pa¼, 05:13, Knute Johnson <nos...(a)rabbitbrush.frazmtn.com>
> wrote:
>
> > Marcin Rze¼nicki wrote:
> > > Hi all,
> > > Is there a way to specify minimum form size using grid bag? I set
> > > minimum sizes on components I don't want to be resized below certain
> > > size, but it does not seem to respect it whatsoever. I am not posting
> > > code 'cause it is generated by Net Beans.
>
> > Play with my GridBagLayout tester program,
>
> >http://rabbitbrush.frazmtn.com/gridbagtester.html
>
> Thanks

Ok, I played with your app a little, but I must confess that I am none
the wiser. The re-sizable panel which you provided can be shrunk to
any size despite playing with min sizes of components belonging to it
and its own settings.
From: Knute Johnson on
Marcin Rze�nicki wrote:
> On 25 Pa�, 12:50, Marcin Rze�nicki <marcin.rzezni...(a)gmail.com> wrote:
>> On 25 Pa�, 05:13, Knute Johnson <nos...(a)rabbitbrush.frazmtn.com>
>> wrote:
>>
>>> Marcin Rze�nicki wrote:
>>>> Hi all,
>>>> Is there a way to specify minimum form size using grid bag? I set
>>>> minimum sizes on components I don't want to be resized below certain
>>>> size, but it does not seem to respect it whatsoever. I am not posting
>>>> code 'cause it is generated by Net Beans.
>>> Play with my GridBagLayout tester program,
>>> http://rabbitbrush.frazmtn.com/gridbagtester.html
>> Thanks
>
> Ok, I played with your app a little, but I must confess that I am none
> the wiser. The re-sizable panel which you provided can be shrunk to
> any size despite playing with min sizes of components belonging to it
> and its own settings.

Yes you can always make the container smaller than the components it
holds. If you call pack() however it will shrink the components to
their preferred sizes. If you further shrink the container, the
components will shrink immediately to their minimum sizes.

If you wish to control the minimum size of a container with GBL, one way
is to set the preferred size of the components and call pack().

--

Knute Johnson
email s/nospam/knute2009/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access