AMC 140
Lab Exercise 1

  1. Download unzip Lab1.zip or GraphicsIOApplet.java, GraphicsCanvas.java, Shape.java, Point.java, Line.java, Circle.java, Rectangle.java, GraphicText.java, CircleTestApplet.java, CircleTestApplet.html, LineTestApplet.java, LineTestApplet.html, ShapesTestApplet.java, ShapesTestApplet.html.
  2. Play around with CircleTestApplet and LineTestApplet to get used to the coordinate system.
  3. Play around with ShapesTestApplet and look at ShapesTestApplet.java to see the different kinds of basic Shapes you can use.
  4. Write your own applet, called PersonApplet1, that extends GraphicsIOApplet and draws a Person that waves his/her hand like shown below: