Basic HTML version of Foils prepared 16 May 98

Foil 14 Java Applets - I

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


Java applets are classes written in Java which are intended not to run as stand-alone programs (as applications do) but as subprograms of a browser which is already managing a window.
Applets should NOT have main method but rather methods such as
  • init, start, paint etc. for displaying on the browser window
The applet should be run through javac compiler getting a MyApplet.class file as before:
  • javac MyApplet.java
Also create an HTML file (say MyApplet.html) with an applet tag referencing MyApplet.class.



© 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