Monday, October 30, 2006

ICA-CP: 10/31/06 - Happy Halloween Applets

Happy Halloween!

Today in honor of Halloween, we are experimenting with Java applets. First, what makes a regular Java program start executing? Answer: It's the main (remember, public static void main (string [] args) ?). Well, an applet is a Java program that executes in a web browser. Since the web browser starts execution, a main is not needed.

Our applets will be using a Java library called lakes.class. The lakes.class library will allow us to make some interesting Halloween applets. For samples, see http://www.codebrain.com/java/specials/halloween1/index.html

Your exercise is to make three applets with at least three different pictures using the lake reflection, rocking, and underwater options. Begin by copying the applets folder to your C:\ drive from the R:\ drive. It contains the html and pictures we will be using for our demo and lecture today.

0 Comments:

Post a Comment

<< Home