Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Minimum form size with grid bag layout

Reply
Thread Tools

Minimum form size with grid bag layout

 
 
Marcin Rze¼nicki
Guest
Posts: n/a
 
      10-25-2009
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.
 
Reply With Quote
 
 
 
 
Knute Johnson
Guest
Posts: n/a
 
      10-25-2009
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
 
Reply With Quote
 
 
 
 
Marcin Rzeźnicki
Guest
Posts: n/a
 
      10-25-2009
On 25 Paź, 05:13, Knute Johnson <nos...@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

 
Reply With Quote
 
Marcin Rze¼nicki
Guest
Posts: n/a
 
      10-25-2009
On 25 Pa¼, 12:50, Marcin Rze¼nicki <marcin.rzezni...@gmail.com> wrote:
> On 25 Pa¼, 05:13, Knute Johnson <nos...@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.
 
Reply With Quote
 
Knute Johnson
Guest
Posts: n/a
 
      10-25-2009
Marcin Rze¼nicki wrote:
> On 25 Pa¼, 12:50, Marcin Rze¼nicki <marcin.rzezni...@gmail.com> wrote:
>> On 25 Pa¼, 05:13, Knute Johnson <nos...@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
 
Reply With Quote
 
Marcin Rze¼nicki
Guest
Posts: n/a
 
      10-26-2009
On 25 Pa¼, 18:10, Knute Johnson <nos...@rabbitbrush.frazmtn.com>
wrote:
> Marcin Rze 1/4 nicki wrote:
> > On 25 Pa 1/4, 12:50, Marcin Rze 1/4 nicki <marcin.rzezni...@gmail.com> wrote:
> >> On 25 Pa 1/4, 05:13, Knute Johnson <nos...@rabbitbrush.frazmtn.com>
> >> wrote:

>
> >>> Marcin Rze 1/4 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().
>


Works like a charm, thanks.

 
Reply With Quote
 
Knute Johnson
Guest
Posts: n/a
 
      10-26-2009
Marcin Rze¼nicki wrote:
> On 25 Pa¼, 18:10, Knute Johnson <nos...@rabbitbrush.frazmtn.com>
> wrote:
>> Marcin Rze 1/4 nicki wrote:
>>> On 25 Pa 1/4, 12:50, Marcin Rze 1/4 nicki <marcin.rzezni...@gmail.com> wrote:
>>>> On 25 Pa 1/4, 05:13, Knute Johnson <nos...@rabbitbrush.frazmtn.com>
>>>> wrote:
>>>>> Marcin Rze 1/4 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().
>>

>
> Works like a charm, thanks.
>


You're welcome.

--

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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Preferred Size, Minimum Size, Size Jason Cavett Java 5 05-25-2008 08:32 AM
Design problem related to A-Bag-Of-Fruit is not the same as A-Bag-Of-Apple T.A. C++ 7 12-03-2006 04:29 PM
grid bag layout problem gk Java 13 09-06-2006 01:49 PM
Choosing Layout: Css-Layout or Table-Layout hpourfard@gmail.com ASP .Net 1 06-19-2006 10:06 AM
DataList inside a Grid Layout Panel (<DIV>) item layout problem Rick Spiewak ASP .Net 3 08-26-2003 04:22 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57