• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet viewer

 
Bob Beasley
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've written an applet, and compiled it. I've created a HTML document with the following code:
< applet code= "TryApplet.class" WIDTH=300 HEIGHT=200>
The files are in the same folder. When I try to run it from the command prompt (Appletviewer TryApplet.html) nothing happens.
Win 2000 Pro
IE6
Thanks
Bob
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that the only thing you have in your html document? Or do you also have the <HTML></HTML>.
You should also terminate your <APPLET> with </APPLET>, just good practice.
 
Bob Beasley
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gregg Bolinger:
Is that the only thing you have in your html document? Or do you also have the <HTML></HTML>.
You should also terminate your <APPLET> with </APPLET>, just good practice.

Yes, I have those tags as well.
Thanks
Bob
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the following applet work with the following html file for you?
 
Bob Beasley
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dirk Schreckmann:
Does the following applet work with the following html file for you?

Yes, It runs fine.
Thanks!
Bob
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic