• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

running 1.2 applets

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic