Basic HTML version of Foils prepared 7 Sept 1997

Foil 20 Displaying your applet from a Web page.

From Introduction to Java to be used in (Scientific) Computing Basic Simulation Track for Computational Science CPS615 -- Fall Semester 97. by Geoffrey C. Fox, Nancy McCracken


1 You should name the file with your applet name, HelloWorldApplet.java, run the javac compiler getting a JavaVM bytecode file HelloWorldApplet.class which you put in a web directory
2 <html><head>
3 <title> Simple Hello World Page </title>
4 </head>
5 <body>
6 My Java Applet says!
7 <applet code="HelloWorldApplet.class" width=150
8 height=25 >
9 </body> </html>
10 Name of your applet class
11 Browser uses a rectangle of width 150 pixels
12 and height 25 pixels to display the applet

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