CS 112
Ileana Streinu

15. Mouse events

  1. Modify the applet (Java code) so that it draws a filled Rectangle instead of a filled circle. I will not tell you how to draw a filled Rectangle: you will have to find this by looking it up in the on-line documentation (or in a Java reference book from the lab).
  2. If the white background color of the applet on the white background of the html page is not to your liking, change the color of the applet background to something else.
  3. The black spot appears slightly off the position where you actually clicked on the applet. Modify the code so that the mouse click will be the center of the black circle.