Programming Drill #3

Due: Wednesday, September 12
Goal:  Draw some shapes and use NetBeans

Write a program in NetBeans that draws the following:

  1. A blue square, using drawRect, that is 200 pixels wide and 200 pixels tall
  2. A filled white circle, using fillOval, that fits exactly inside the blue square
  3. A green line, using drawLine, that connects the upper left and lower right corners of the square

Here is an image of what your program should draw:

Show your program to your instructor or email it to kenrick@uaa.alaska.edu by the end of the day for full credit.  If you email the program, zip up the entire NetBeans folder for your project and send the zip file.