🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Gridbaglayout display issue

#367
From: Magnus
Date: Wed, 28 Sep 2005 14:05
48 lines
2863 bytes
Gillmer J. Derge [TeamB] wrote:

> Magnus wrote:
> 
>> What could have caused this to happen and what can I do to prevent 
>> this and similar display "issues" in the future? Can this be caused by 
>> the display setting for the computer. (WinXP)
> 
> 
> Did he send you a screenshot?  The first thing I always wonder about 
> when I get a bug report is how many vital details have been left out of 
> the report because they're "obvious" to the tester.  It's rare that the 
> number is zero.

He did send a screenshot. All other (the window have 6 labels, fields 
and buttons in total) show normal.

The window can not be re-sized.

"Ordinary" fonts

  > Is he able to run the program in a way that opens a console window? 
  You
> might see some kind of exception backtrace that will help explain the 
> problem and where it's occurring.

Sorry, no!

>> 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));
> 
> 
> Two things hit me at first glance.  First, you have fairly large insets, 
> especially compared to the other component (all 0's).  Maybe the combo 
> box is getting squeezed out and doesn't have room.  More likely it's the 
> second issue though.
> 
> The last argument to the GridBagConstraints constructor is "ipady." 
> You're passing -1.  The documentation doesn't explicitly prohibit 
> negative values, but I doubt they're legal.  Try 0 or 1 and see if that 
> works better.
> 

The window was created using the XYLayout and then "automatically" 
converted to GBL (as the tutorial recommends). I have done this for > 30 
windows and only had to adjust a couple of times. That is where the -1 
comes from (and all other arguments).
Technical Details
Message-ID: <433aa2a3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,621c342b92c7ba27
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 28 Sep 2005 10:05:14 -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>
In-Reply-To: <433aa03d$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: <433aa2a3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1127916195 67.76.181.96 (28 Sep 2005 07:03:15 -0700)
Lines: 49
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail