🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #387

Re: Gridbaglayout display issue

#387
From: Magnus
Date: Fri, 14 Oct 2005 17:34
34 lines
2682 bytes
Paul Furbacher [TeamB] wrote:

  >
> Maybe the size of two dots is considered by the layout
> mechanism to be smaller than any character.  Don't know,
> but that would be my guess.  I have a feeling that the
> insets are causing the control to be squeezed to such
> a small size.  What happens if you remove the insets
> and set preferred minimum size equal to the preferred size?

You are probably right. I'm working on a distance so I don't have easy 
access to this problem to test it properly.

However, I did some tests today with an upgrade script and tested that 
script on a Win98. I had a look at the box before my upgrade (with 
similar problem as the WinXP described earlier) and after and my 
adjustments of the constraints fixed it there at least.

--- auto from XY conversion ---
panel1.add(comPortComboBox, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0
       , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
       new Insets(28, 8, 0, 30), 14, -1));

--- new constraints ---
panel1.add(comPortComboBox, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0
       , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
        new Insets(28, 1, 0, 1), 0, 0));

Everything else in the panel is kept as it was.

I will continue to do my upgrade from 1.0 to 1.1 tests and at the same 
time "play" with my GBL field constraints.

I will keep you posted.
Technical Details
Message-ID: <434feb93$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <433a99e1$1@newsgroups.borland.com> <433aa03d$1@newsgroups.borland.com> <433aa2a3$1@newsgroups.borland.com> <4341f680@newsgroups.borland.com> <4341f7ba@newsgroups.borland.com> <434a8864$1@newsgroups.borland.com> <434a932c$1@newsgroups.borland.com> <434a995b$1@newsgroups.borland.com> <434aec1e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,621c342b92c7ba27
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 14 Oct 2005 13:34:51 -0400
From: Magnus <magnus_bjorkman@iwon.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en, sv
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Gridbaglayout display issue
References: <433a99e1$1@newsgroups.borland.com> <433aa03d$1@newsgroups.borland.com> <433aa2a3$1@newsgroups.borland.com> <4341f680@newsgroups.borland.com> <4341f7ba@newsgroups.borland.com> <434a8864$1@newsgroups.borland.com> <434a932c$1@newsgroups.borland.com> <434a995b$1@newsgroups.borland.com> <434aec1e$1@newsgroups.borland.com>
In-Reply-To: <434aec1e$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.76.181.96
Message-ID: <434feb93$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1129311123 67.76.181.96 (14 Oct 2005 10:32:03 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail