Basic HTML version of Foils prepared 20 Sept 97

Foil 11 Applet Tag: Calling Applets from HTML - I

From Java Tutorial - Summer 1997 Part 1:Introduction to Java Language CEWES Tutorial, Classes SU/Jackson State -- July 22-25 and Fall 97. by Nancy J. McCracken,Geoffrey C. Fox


1 Given the following HTML
  • <APPLET CODE="StockGraph.class"
    • CODEBASE="http://www.javasoft.com/applets/"
    • WIDTH=200 HEIGHT=200>
  • </APPLET>
2 Runs the "StockGraph.class" executable as an applet.
3 WIDTH and HEIGHT are attributes that are passed along to the applet.
4 If the optional CODEBASE attribute is provided, then load the executable image from the directory specified by CODEBASE.
  • Without the CODEBASE attribute, will look for StockGraph.class in the local server's hierarchy (relative to where the HTML was loaded)
  • With the CODEBASE attribute will look for StockGraph.class on the given http hierarchy.
5 Tag and attribute names are case insensitive.

in Table To:


© on Sun Oct 12 1997