Ahhhh! The wonderful world of applets!
Tomm's favorite!
Aren't these just an absolute JOY to debug? Just wait till you try to make these work with different browsers. And windows XP.
:-)
But seriously, Abhijit,
If your Applet uses Swing, you will need to point the browser to the Swing plugin, preferably on Sun or somewhere outside your site. But this will not work if your users have Win XP unless your users download Java.
FOR EXAMPLE, look at this wonderful code snippet from the Sun's Hello World swing applet. You can ask Tomm about it: he seems to enjoy writing applets and debugging this kind of code. Sorry, I'm just not that masochistic.
:-)
Greg
http://java.sun.com/docs/books/tutorial/uiswing/start/HelloSwingApplet.html
<h2>
Run HelloSwingApplet
</h2>
<blockquote>
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.1 -->
<SCRIPT LANGUAGE="JavaScript"><!--
var _info = navigator.userAgent; var _ns = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
//--></SCRIPT>
<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
//--></SCRIPT></COMMENT>
<SCRIPT LANGUAGE="JavaScript"><!--
if (_ie == true) document.writeln('<OBJECT classid=""clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"" WIDTH = 400 HEIGHT = 50 codebase="javascript:void(0);" HREF="javascript:void(0);" TARGET="_blank">http://java.sun.com/products/plugin/1.1.2/jinstall-112-win32.cab#Version=1,1,2,0"><NOEMBED><XMP>');
else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.1.2" java_CODE = "HelloSwingApplet.class" java_CODEBASE = "example-swing" java_ARCHIVE = "applets.jar" WIDTH = 400 HEIGHT = 50 pluginspage="http://java.sun.com/products/plugin/1.1.2/plugin-install.html"><NOEMBED><XMP>');
//--></SCRIPT>
<APPLET CODE = "HelloSwingApplet.class" CODEBASE = ""example-swing"" ARCHIVE = "applets.jar" WIDTH = 400 HEIGHT = 50 ></XMP>
<PARAM NAME = CODE VALUE = "HelloSwingApplet.class" >
<PARAM NAME = CODEBASE VALUE = "example-swing" >
<PARAM NAME = ARCHIVE VALUE = "applets.jar" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.1.2">
</APPLET>
</NOEMBED></EMBED></OBJECT>
<!--
<APPLET CODE = "HelloSwingApplet.class" CODEBASE = ""example-swing"" ARCHIVE = "applets.jar" WIDTH = 400 HEIGHT = 50 >
</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->
Good Luck,
Greg
-----Original Message-----
From: Tomm Carr [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 19, 2002 8:27 PM
To: JDJList
Subject: [jdjlist] RE: Applet display
Alan Williamson wrote:
>has your source got:
>
>------------
>public class Disp extends Object {}
>------------
>
>or
>
>------------
>public class disp extends Object {}
>------------
>
>
>
Also try using appletviewer. If nothing else, it may give you more
meaningful error messages.
Tomm
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
