Basic HTML version of Foils prepared September 1 99

Foil 13 Displaying your applet from a Web page.

From Introduction to Java Language and Applets CPS406/606 Fall Semester 1999 -- September 2 99. by Nancy J. McCracken, Geoffrey C. Fox

title=The HelloWorldApplet.html file
You should name the file with your applet name, HelloWorldApplet.java, run the compiler (javac), getting a bytecode file HelloWorldApplet.class, which you put in a web directory.
<html><head>
<title>Simple Hello Page</title>
</head>
<body>
My Java applet says:
<applet code="HelloWorldApplet.class" width=150 height=25>
</applet>
</body></html>
Name of your applet class.
The browser will use a rectangle of width 150 pixels and height 25 pixels to display the applet within the other html.



© 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 Wed Sep 1 1999