Article View: borland.public.jbuilder.java.swing
Article #429Re: UI management
From: Lori M Olson [TeamB]
Date: Thu, 12 May 2005 22:25
Date: Thu, 12 May 2005 22:25
41 lines
2369 bytes
2369 bytes
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:
<4283d7c0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4283d679$1@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 Date: Thu, 12 May 2005 16:25:04 -0600 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: UI management References: <4283d679$1@newsgroups.borland.com> In-Reply-To: <4283d679$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <4283d7c0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115936704 142.179.181.200 (12 May 2005 15:25:04 -0700) Lines: 41 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail