🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Changing LnF dynamically creates componets size changes abnormally

#1828
From: Rich Wilkman
Date: Tue, 05 Aug 2003 04:34
23 lines
1877 bytes
Kostas:

If you're going to toggle L&F you really must use a non-coordinate based 
layout manager.  The L&F changes, well, how the components look. In some 
cases borders show up or disappear, for example.  The standard font may 
be different per L&F which can make things shift.

To totally avoid it you would have to write your own L&F.

-Rich

Kostas wrote:

>Hi all,
>When i change dynamically the Look and Feel of my application some componets
>size changes abnormally (the edges of a label or a button are unvisible).
>How can i avoid this behaviour?. I call the pack method for all the frames
>after the LnF change but the problem remains. Any ideas ?
>Thanks for advance, kostas.
>
>
>  
>
Technical Details
Message-ID: <3F2F33B9.70800@formlessvoid.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!btnet-peer0!btnet-peer!btnet!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f2edb0b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,1b29af41f8a52ee4
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-08-04 21:36:32 PST
Message-ID: <3F2F33B9.70800@formlessvoid.com>
Date: Mon, 04 Aug 2003 21:34:01 -0700
From: Rich Wilkman <richw@formlessvoid.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Changing LnF dynamically creates componets size changes abnormally
References: <3f2edb0b@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 63.249.85.97
X-Trace: newsgroups.borland.com 1060058036 63.249.85.97 (4 Aug 2003 21:33:56 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!btnet-peer0!btnet-peer!btnet!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail