PPL Thread & Exception Homework
Write an applet which draws two ovals on the screen.
Move ovals on the screen.
Ovals should move the whole applet area
Each oval must be controlled by a thread
At the borders of the applet, you need to throw an exception and change the direction of ovals by using this exception. So bouncing on the borders should be done by exception handling.
This assignment is for two weeks (dead line is Apr/01/2004)
Necessary functions
drawRect(x,y,w,h) >> This function draws a rectange in the given x and y coordinates with the given width and height.
fillOval(x,y,w,h) >> This function draws a rectange in the given x and y coordinates with the given width and height. Oval is also filled with the given color.
Check the api http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Graphics.html
updated 19/03/2004 - 21:40 by Sadi Evren SEKER