🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: UI management

#430
From: Mike
Date: Thu, 12 May 2005 23:09
47 lines
2539 bytes
I tried that the first time.
It only updates the laf of the main window, and non of it subcomponents.
The only way I have found to get it to work, is like I mentioned.


"Lori M Olson [TeamB]" <javadragon@techie.com> wrote in message 
news:4283d7c0@newsgroups.borland.com...
> Mike wrote:
>> I am having a problem updating the laf of my java program.
>>
>> I have changed the laf using:
>>     UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
>>
>> which works fine, then I use successive calls to:
>>     SwingUtilities.updateComponentTreeUI();
>>
>> to update container component laf in my main window.
>>
>> The problem is, when I call 
>> SwingUtilities.updateComponentTreeUI(mainMenu); it does not update the 
>> laf of all of the menu items themselves. Only some of the menu items take 
>> the new laf and some do not????
>>
>> Anyone have any idea what could be causing this? Or how to fix this?
>
> Huh?  Why would you use "successive calls"?  You are supposed to call 
> SwingUtilities.updateComponentTreeUI(myFrame), where myFrame is the root 
> window of your application.
>
> -- 
>
> Regards,
>
> Lori Olson [TeamB]
>
> ------------
>
> Save yourself, and everyone else, some time and search the
> newsgroups and the FAQ-O-Matic before posting your next
> question.
>
> Google Advanced Newsgroup Search
>     http://www.google.ca/advanced_group_search
> Other Newsgroup Searches:
>     http://www.borland.com/newsgroups/ngsearch.html
> Joi Ellis's FAQ-O-Matic:
>     http://www.visi.com/~gyles19/fom-serve/cache/1.html 
Technical Details
Message-ID: <4283e1f4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4283d679$1@newsgroups.borland.com> <4283d7c0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,ed2e335ab3983415
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mike" <manmower@signalmarketing.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <4283d679$1@newsgroups.borland.com> <4283d7c0@newsgroups.borland.com>
Subject: Re: UI management
Date: Thu, 12 May 2005 18:09:06 -0500
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 24.76.6.55
Message-ID: <4283e1f4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115939316 24.76.6.55 (12 May 2005 16:08:36 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail