Basic HTML version of Foils prepared 20 Sept 97

Foil 12 Applet Tag: Calling Applets from HTML - II

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 <APPLET CODE="StockGraph.class" WIDTH=200 HEIGHT=200
  • ALT="-- StockGraph Not Supported --"
  • NAME=SUNW ALIGN=top
  • VSPACE=5 HSPACE=5>
2 Put a bunch of text here to be displayed by browsers such as Netscape 2.0 on Windows 3.1 that do not support Java
3 </APPLET>
4 ALT specifies text to displayed if the browser understands the applet tag, but if unable to run applets.
5 NAME specifies the name of this instance of the applet; This will make it possible for applets on the same page to find and communicate with each other.
6 ALIGN specifies the alignment of the applet. The possible values are the same as those available in the IMG tag (top, middle, bottom, texttop, absmiddle, baseline, absbottom, left, right).
  • Align=top which aligns top of applet with top of tallest item in the line
  • Align=texttop which aligns top of applet with top of the tallest text in the line
7 VSPACE and HSPACE specifies the vertical and horizontal spacing in pixels, around the applet space.

in Table To:


© on Sun Oct 12 1997