PPL Graphics Homework

  • Write an applet which draws two ovals on the screen.
  • Move ovals on the screen.
  • Ovals should move the whole applet area
    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:35 by Sadi Evren SEKER