Article View: borland.public.jbuilder.java.swing
Article #11208Java2 applet L&F changes while applet is running!
From: William R. Bacon
Date: Mon, 28 Jun 1999 00:00
Date: Mon, 28 Jun 1999 00:00
23 lines
1283 bytes
1283 bytes
Hello JB,
I've created several applets using JBuilder 3, Java 2, and IE5 to test them.
Each applet has a button that, when clicked, navigates to another HTML page
containg a different applet. I am using only awt and swing components. The
problem is that when ever I press the Refresh button on the browser or if I
navigate back to a previously visited applet, the applets change their Look
& Feel from Windows to Metal! I am running the apps on Windows NT 4. I
specified in the code to use Windows Look & Feel before the init( ) method,
like this:
static {
try{
UIManager.setLookAndFeel(new
com.sun.java.swing.plaf.windows.WindowsLookAndFeel());
}
catch (Exception e) {}
}
Anybody got an idea on what's happening?
Thanks,
Redding
reddingbacon@msn.com
Technical Details
Message-ID:
<7l84ig$mqn4@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7e720c45309d2558,start X-Google-Attributes: gid111d45,public From: "William R. Bacon" <WRBacon@email.msn.com> Subject: Java2 applet L&F changes while applet is running! Date: 1999/06/28 Message-ID: <7l84ig$mqn4@forums.borland.com> X-Deja-AN: 494803735 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Newsgroups: borland.public.jbuilder.java.swing