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

running 1.2 applets

Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you have to do to get 1.2 applets containing swing components to run under browsers? <applet></applet> evidently can't do this because swingall.jar isn't packaged into the deployment .jar file. I tried to replicate the <embed></embed> example from Sun, but it didn't work. My applet won't init.
Any suggestions?
Mike Roper
Posts: 3226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need the Java Plug-in for those browsers. Then
not only will they support Swing, but Java 2 also.
But you need to modify the HTML tags to use the plug-in. And
expecting that your users will have the plug-in installed in their
systems in unrealistic UNLESS of course, you are in an Intranet where
somebody dictates what's installed on the workstations.
As I said, the HTML file has to change to use the plug-in. <APPLET>
becomes <EMBED>
in NN4 and becomes <OBJECT> in IE4 and IE5. There's more, and the Sun
page on
its plug-in tells how. In fact they have an HTML converter that will
modify your <APPLET> tags so that the plug-in can be used.
It's all explained in Sun's site:
You can download the Java Plug-in 1.2 HTML Converter from:
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Tony. Unfortunately, been there, done that, got the tee-shirt (read plugin). I tried to replicate the code on the Sun site and all that before I posted here. Also, since Netscrape and IEEEEE5 use different invocations, is it necessary to query the browser to see which it is addressing your code? (If so, barf).
Mike Roper
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic