• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing components in HTML page possible?

 
Kavitha S
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Venkatraman Kandaswamy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have come across this once : http://webonswing.sourceforge.net/xoops/If its irrelevant please ignore.
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!