Basic HTML version of Foils prepared Oct 1 98

Foil 11 Displaying your applet from a Web page.

From Java Tutorial 98- 1: Introduction to Java Language and Applets CPS606 -- Fall Semester. by Geoffrey C. Fox, Nancy McCracken

title=The HelloWorldApplet.html file
1 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.
2 <html><head>
3 <title>Simple Hello Page</title>
4 </head>
5 <body>
6 My Java applet says:
7 <applet code="HelloWorldApplet.class" width=150 height=25>
8 </applet>
9 </body></html>
10 Name of your applet class.
11 The browser will use a rectangle of width 150 pixels and height 25 pixels to display the applet within the other html.

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 Sat Nov 28 1998