🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Swing GUI problem - after a compile, components shift back to original size/position.

#1233
From: pnichols
Date: Wed, 25 Feb 2004 19:33
15 lines
1798 bytes
TJC wrote:

> This is frustrating!  I am designing a simple panel using the XYLayout.  I
> quite often get into a situtation (not sure why/how) where I am aligning
> some components by multi-selecting them and choosing "Align Left" from the
> right-mouse context menu for example.  The UI aligns them perfectly and
> things look great.  BUT when I compile (Ctrl-Shift-F9) the components that

You really should not use the XYLayout manager. It is more or less for
design time only. If you deploy to a different machine, you can have
trouble, and if you deploy from say Windows to Linux, it will never look
right.

Using nested panels and the javasoft Layout Managers are the way to go.
Avoid null and XYLayout for all but design mode. 
Technical Details
Message-ID: <403cf5ec@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <403cb4fa$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,39a79768d2815a95
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-02-25 11:42:14 PST
Message-ID: <403cf5ec@newsgroups.borland.com>
From: pnichols <paul@comp.net>
Subject: Re: Swing GUI problem - after a compile, components shift back to original size/position.
Newsgroups: borland.public.jbuilder.java.swing
Reply-To: paul@comp.net
Mail-Copies-To: paul@comp.net
Date: Wed, 25 Feb 2004 14:33:56 -0500
References: <403cb4fa$1@newsgroups.borland.com>
Lines: 15
Organization: clc
User-Agent: KNode/0.7.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
NNTP-Posting-Host: 68.71.188.25
X-Trace: newsgroups.borland.com 1077736940 68.71.188.25 (25 Feb 2004 11:22:20 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail