Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running 1.2 applets

 
Anonymous
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?
Help
Mike Roper
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • 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:
http://www.javasoft.com/products/plugin/1.2/docs/tags.html
You can download the Java Plug-in 1.2 HTML Converter from:
http://www.javasoft.com/products/plugin/1.2/features.html
 
Anonymous
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic