ICA-CP: 10/31/07 - 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 2-3 applets with at least 2-3 different pictures using the lake reflection, rocking, and underwater options. Begin by copying the Halloween 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. Then, use the CASE method to modify the html to use your pictures.
0 Comments:
Post a Comment
<< Home