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
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
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD
posted 20 years ago
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