Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Applet viewer

 
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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • 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
 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic