Basic HTML version of Foils prepared June 5 99

Foil 13 Displaying your applet

From Java Language in the Computer Science Curriculum ADMI Tutorial Duluth Minnesota -- June 3 99. by Geoffrey C. Fox


1 Here is an HTML file with an applet tag to display the results of drawing the applet. First compile the file HelloApplet.java and then run the browser on this html file.
2 The students had a JavaEdit (public domain edit/compile environment) program that made this easy.
3 <html><head>
4 <title>Simple Hello Page</title>
5 </head>
6 <body>
7 My Java applet says:
8 <applet code="HelloApplet.class" width=150 height=25>
9 </applet>
10 </body></html>
11 Name of your applet class.
12 The browser will use a rectangle of width 150 pixels and height 25 pixels to display the applet within the other html.
13 We made a Java Version

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 Jun 5 1999