Java Programming
12-179-01
Assignment 3
Due 22 October 1996
Contact Information
Instructor: John Barr
Office: 402C Williams Hall
Phone: 4-3579
E-Mail:
Barr@icsun.sunnet.ithaca.edu
Instructions
Complete the following requirements. Any written answers should be
put into a text file. Place all of your files into a folder. Label
the folder with your last name and drop it into the CS190/HMWK/Lab2
folder.
Requirements
Write an applet or application that uses three threads. The threads
should have the following functionality.
- There must be a thread that displays the current time in a box.
You should use some component (e.g., textField) to display the time.
- There must be a thread that displays a small animation. You can
use the pictures from any source for your animation, but you should have
at least three pictures in the animation. You should get the picture
names, the number of pictures, and the path to the pictures from
applet (or application) arguments. See the Java in a Nutshell
textbook, example 4-8 on page 99 for an example of how
to do simple animation. You do not have to use advanced animation
techniques (like using the mediaTracker or double buffering).
- There should be a thread that displays moving text in a box. The
text should move across the screen in the box, like a movie marquee.
You should get the exact text that is to be displayed from either an
applet parameter or from a file.
Return to Student Pages
Return to John Barr's Home Page
Last Modified: 28 August 1996
THIS PAGE MAINTAINED BY:
John Barr, Ithaca College