Okay, I've created an applet exactly as my book tells me to and I've used the applet tags and param tags in my html. Netscape shows my applet fine, but in IE (win2k) I'm just getting a grey box. Can anyone tell me why the newest version of IE doesn't seem to run my applet and netscape will? Is it anything to do with the code? Here's my html code just in case it does. <applet code="newpalindrome.class" width=600 height=100> <param name=palindrome value="No, sir, prefer prison"> Your browser does not support Java! </applet> One side note...see how I have the part that says "Your browser does not support Java"? Well, this isn't showing up in IE even though it's not running the applet. Just a grey box. Thanks for your help!!!
What does it say on the status bar when you hover the mouse over the grey box?
posted 19 years ago
It says load: newpalindrome can't be istantiated. What's weird is since I posted my message, I've got two other applets to come up fine in IE. But again, this first applet (newpalindrome) worked fine in Netscape, so I don't know what to make of it.
You will need the HTML converter to run applets that use Java2 in IE because this browser doesn't use a JVM that can handle Java2. I think the converter can be find on sun.com/plugins. Good luck Patrick
posted 19 years ago
If I understand you correctly, you're saying that this applet is a version 2 applet? That stinks cause this book said that as far as teaching applets, it would try to stick with the version that all browsers can work with. I hope that's the reason Thanks.
Here's a tip: to find out the class/method that causing the problem, click View->Java Console in IE and have a look. If there is no Java Console option, set it through Tools->Internet Options->Advanced. The console shows where the error (or exception) was generated and you may be able to modify your code to work on older JVM's. Hope that helps. ------------------ - Daniel