🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Windows Look & Feel for applet?

#1822
From: Ramon F Herrera
Date: Sun, 03 Aug 2003 17:06
38 lines
2262 bytes
Thanks for your assistance, Gilmer.

I got a very good suggestion in another newsgroup.
This is really what I want:

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

That is, every user should have the native GUI of his/her
platform.

Having said that, I still have the same problem (I always get
the metal L&F no matter what my code says).  Since a lot of
my applet's code is placed there by JBuilder, what I need to
know now is where (in what method) should I set the L&F?

Regards,

-Ramon



Gillmer J. Derge [TeamB] wrote:
> "Ramon F Herrera" <ramon@jonjay.com> wrote in message
> news:3F2C69A2.7080100@jonjay.com...
> 
>>If my Windows Netscape
>>plugin can display the metal L&F ahouldn't, say, the
>>Linux Netscape be able to use the Windows L&F?
> 
> 
> No, and that's the problem.  The Windows look and feel only works on
> Windows.  Call the isSupportedLookAndFeel method of the Windows look and
> feel, and it will only return true on Windows.
> 
> Is your call to UIManager.setLookAndFeel throwing any exceptions?
> 

No, there are no exceptions being thrown.
Technical Details
Message-ID: <3F2D40FE.4030403@jonjay.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3F2BF51B.2020307@jonjay.com> <3F2C0E9A.7050509@formlessvoid.com> <3F2C69A2.7080100@jonjay.com> <3f2d20c4$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b0ac4314a1e5d01e
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-08-03 10:09:36 PST
Message-ID: <3F2D40FE.4030403@jonjay.com>
Date: Sun, 03 Aug 2003 13:06:06 -0400
From: Ramon F Herrera <ramon@jonjay.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Windows Look & Feel for applet?
References: <3F2BF51B.2020307@jonjay.com> <3F2C0E9A.7050509@formlessvoid.com> <3F2C69A2.7080100@jonjay.com> <3f2d20c4$3@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.61.5.75
X-Trace: newsgroups.borland.com 1059930371 24.61.5.75 (3 Aug 2003 10:06:11 -0700)
Lines: 39
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail