jApplet Look and Feel
Greetings All,
I've created a jApplet Class using jDeveloper. I've set the UIManager.setLookAndFeel method to use system look and feel and also tried setting the class name as "com.sun.java.swing.plaf.windows.WindowsLookAndFeel". I tried viewing this applet in the appletviewer, the windows look and feel is comming properly. But If use this jApplet in the IE 6.0, then this jApplet always uses the METAL (default Look and feel).
What am I doing wrong. I'll be glad if someone can help.
Thanks in advance.
Regards
Karthik.
this is becoz, when u are viewing it with appletviewer, you are using the JVM of the installed jdk on ur machine and since JApplet is a heavyweight component of Swing , it uses the native peer classes of the underlying system...so u do get the look as u want...but when u are viewing it with IE6.0, u are using the JVM provided by the browser which is separate from that of ur installed jdk on ur machine...so it doesn't provide any support of the underlying native classes of ur system, since it cannot access anything outside its JVM for security issues....so u are getting the default look and feel.
j2ssa at 2007-7-9 13:16:30 >
