unc comp 110 fall 07.

Java applet recitation  


A Java applet is a Java feature to run graphical Java programs in a web page. This is an alternative technique to JavaScript for running programs in a web page. There are several technologies for running programs in a web page and the technologies have different purposes.

Some examples



For the recitation on Java applets we will use an existing online tutorial. This tutorial gives a good overview and provides concise code. Although it is very old (1996) and some Java details have changed, code listed in the tutorial will create a running program.  

I recommend completing the following parts to get the most basic graphical applet.

  1. Create your first Java applet program
  2. Create the HTML file to view your applet in a web page
  3. Expand your applet to include mouse clicks

The complete applet tutorial is here: http://www.cs.clemson.edu/~cs428/resources/java/tutorial/JTTOC.html

Other tutorials (search the web for many more)