Article View: borland.public.jbuilder.java.swing
Article #1818Re: Windows Look & Feel for applet?
From: Ramon F Herrera
Date: Sun, 03 Aug 2003 01:47
Date: Sun, 03 Aug 2003 01:47
52 lines
2601 bytes
2601 bytes
Rich:
Thanks for your answer, but I am not sure I agree.
First of all, are you saying that the only look and
feel that Java applets should use is the metal L&F?
What's so special about it? 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?
In the metal L&F some sort of neutral ground that all
browsers implement?
I reference to the com/sun/ directories, it turns out
that I already have a set of com/borland/jbcl/ directories
without which my applet will simply not run.
Rich Wilkman wrote:
> 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:
<3F2C69A2.7080100@jonjay.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3F2BF51B.2020307@jonjay.com> <3F2C0E9A.7050509@formlessvoid.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 18:52:02 PST Message-ID: <3F2C69A2.7080100@jonjay.com> Date: Sat, 02 Aug 2003 21:47:14 -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> 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 1059875234 24.61.5.75 (2 Aug 2003 18:47:14 -0700) Lines: 53 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail