• 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

complete newbie with applets here

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!!!
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does it say on the status bar when you hover the mouse over the grey box?
 
tyler jones
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
tyler jones
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic