🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: LookAndFeel switching

#12081
From: S�bastien GRENIER
Date: Mon, 22 Feb 1999 00:00
45 lines
1711 bytes
Thank U for the info...

I looked in the samples, that are thoses providen by
SUN (can fnd the same in JDK 1.2 package).

The key for Look And Fell change is :

UIManager.setLookAndFeel(.....);
SwingUtilities.updateComponentTreeUI(getRootComponent());

U have to update each component settings....

It works.


Vasudevan Srinivasan a �crit dans le message
<36CD746B.E87FE77C@netrisk.com>...
>Hi,
>Take a look at the samples provided along with jb2. one of them does
>what you want. i dont remember the name but given there are only few you
>can easily find.
>
>HTH
>Vasu
>
>S�bastien GRENIER wrote:
>
>> Hi everybody.
>>
>> I'm trying to get the same effect a lot of softs
>> provide, I mean : there's a Control panel or a
>> menu switch that allow the user to select the
>> Look'n'Feel.
>>
>> This switch is done dynamicaly.
>>
>> Whereas I can select the Look'n'fell before
>> using any visual element, I can't get the dynamic
>> switch to works simply by assigning a new
>> Look'n'Feel to the UIManager.
>>
>> Does anybody known if this is possible, or if
>> the switch can only be done before using any
>> GUI element ?
>
Technical Details
Message-ID: <7arl7g$pok11@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7aj9ip$fj35@forums.borland.com> <36CD746B.E87FE77C@netrisk.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,4577b00ff2d7ebef
X-Google-Attributes: gid111d45,public
From: "S�bastien GRENIER" <sgrenier@NOSPAM.atos-group.com>
Subject: Re: LookAndFeel switching
Date: 1999/02/22
Message-ID: <7arl7g$pok11@forums.borland.com>
X-Deja-AN: 447065811
References: <7aj9ip$fj35@forums.borland.com> <36CD746B.E87FE77C@netrisk.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing