Basic HTML version of Foils prepared 16 May 98

Foil 17 Applet Tag: Calling Applets from HTML - II

From Introduction to Java to be used in (Scientific) Computing CEWES Java Tutorial -- Spring Semester 98. by Geoffrey C. Fox, Nancy McCracken


1 <APPLET CODE="StockGraph.class" WIDTH=200 HEIGHT=200
2 ALT="-- StockGraph Not Supported --"
3 NAME=SUNW ALIGN=top
4 VSPACE=5 HSPACE=5>
5 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
6 </APPLET>
7 ALT specifies text to displayed if the browser understands the applet tag, but if unable to run applets.
8 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.
9 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
10 VSPACE and HSPACE specifies the vertical and horizontal spacing in pixels, around the applet space.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998