Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Swing components in HTML page possible?

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.
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have come across this once : its irrelevant please ignore.
Posts: 9615
Mac OS X Linux 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.
Skool. Stay in. Smartness. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic