I'm trying to embed an applet in HTML by embedding the <applet> tag within the <html> tag. An applet containing only AWT components gets displayed in a HTML page. But when I use Swing components in an applet or when i use a JApplet, i'm not able to display it using HTML. (it simply does not load or displays the java.lang.ClassNotFound exception for javax.swing.JPanel, or JButton, or any swing based class) Is it possible to show Swing components in a HTML page? Kindly help me.
If you are using IE, you are probably using the ancient Microsoft Java VM which does not support Swing. Check here. If your java version is not 1.4.2 or 1.5.0, you should upgrade to a current Sun Java Runtime or Development Kit. If you have installed the JDK or JRE, you may need to take one more step to activate it in IE. Go to your Control Panel, click on the "Advanced" tag, click on "<APPLET> tag support" and select Internet Explorer.