🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: what is wrong with XY layout

#530
From: Magnus
Date: Fri, 03 Jun 2005 14:21
55 lines
3533 bytes
More input:

I develop an application and have about 20 screens with trees, graphics 
and regular text fields.

I looked in to the the different layout managers and found XYLayout to 
best fit my needs (for some of the screens I used Cardlayout, and 
BorderLayout). If this discussion was started a little bit earlier, I 
would probably have worked with GridBagLayout instead.

I have only seen a font problem on a Win98 system when tested it there 
and several people have tried it on their systems (different laptops and 
desktops but still winXP though.) and none have reported anything strange.

Now, when Lori wrote the test of "Use Large Fonts" I got worried I have 
to redo my layout.

Amazingly though - the app actually looked a lot better on my desktop. 
Earlier I didn't see any lines in my trees but now the show. I tried all 
screens and none showed up with any problems. I will continue using 
"large fonts" when working ...

I then tried "Use Extra Large Fonts" but still no problem.



Lori M Olson [TeamB] wrote:

> Paul Nichols [TeamB] wrote:
> 
>> I understand your scenario here. But the problem with XY layout remains.
>> Even on the same OS, you are going to have inconsistencies with different
>> machines that use different monitors and/or Graphics cards. XY uses an
>> layout that arranged pixels according to the grid. That grid will be 
>> drawn
>> differently, under the restrictions of resolution and/or graphic 
>> matrix (at
>> least that is my experience). Grid bag makes sense, since it adapts to
>> these changes (also my experience). However, there are several
>> Layoutmanagers in the open source world that can approximate XY and give
>> you better results. However, you may lose some of the GUI designer if you
>> use them. But it might be worthwhile to see how they work.
>>
>> Here are some of interest:
>>
>> http://www.softbear.com/people/larry/javalm.htm
>>
>> Good luck!!
>>
> 
> And I'll chime in with one more extremely common and simple GUI change 
> on Windows that immediately breaks XYLayout.
> 
> Go into your display settings, and choose "Use Large Fonts".  You get a 
> lot of 40-somethings refusing to get reading glasses using this.
Technical Details
Message-ID: <42a0675c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4295eeba$1@newsgroups.borland.com> <4295f588$1@newsgroups.borland.com> <429a20f2@newsgroups.borland.com> <429ab182@newsgroups.borland.com> <429e079b$1@newsgroups.borland.com> <429fcf60@newsgroups.borland.com> <429fdec3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,5c3cecf063c90622
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 03 Jun 2005 10:21:33 -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: what is wrong with XY layout
References: <4295eeba$1@newsgroups.borland.com> <4295f588$1@newsgroups.borland.com> <429a20f2@newsgroups.borland.com> <429ab182@newsgroups.borland.com> <429e079b$1@newsgroups.borland.com> <429fcf60@newsgroups.borland.com> <429fdec3$1@newsgroups.borland.com>
In-Reply-To: <429fdec3$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.0.99.227
Message-ID: <42a0675c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1117808476 71.0.99.227 (3 Jun 2005 07:21:16 -0700)
Lines: 55
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail