Article View: borland.public.jbuilder.java.swing
Article #1815Re: Windows Look & Feel for applet?
From: Rich Wilkman
Date: Sat, 02 Aug 2003 19:18
Date: Sat, 02 Aug 2003 19:18
33 lines
2003 bytes
2003 bytes
Ramon:
You may not be able to do this. The applet is downloaded to the client
and does 99% of it's running from there. If you force Windows L&F then
not everyone will be able to run it (only people on Windows machines).
Are you using the Plugin to run your applet? You shouldn't need to send
the L&F stuff down to the client.
-Rich
Ramon F Herrera wrote:
>
> The following line changes the default (Metal) look and feel
> only when I run my applet from JBuilder:
>
> UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
>
>
> However, when the applet runs from the web server, I still
> get the Metal look & feel. I guess I should upload a file
> to the server and create a directory tree such as:
>
> com/sun/java/swing/windows/...
>
> but I am not sure about the details. Is this the correct
> solution? Where do I get the file(s) above?
>
> TIA,
>
> -Ramon F. Herrera
>
Technical Details
Message-ID:
<3F2C0E9A.7050509@formlessvoid.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3F2BF51B.2020307@jonjay.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-02 12:27:05 PST Message-ID: <3F2C0E9A.7050509@formlessvoid.com> Date: Sat, 02 Aug 2003 12:18:50 -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: Windows Look & Feel for applet? References: <3F2BF51B.2020307@jonjay.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 1059851926 63.249.85.97 (2 Aug 2003 12:18:46 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail