Summary
We modified the
World
class
- to get access to the JFrame
object that is
encapsulated in a World
object.
We modified the
SimplePicture
class
- to control
the color of the text that is placed on the image in a Picture
object.
We placed a JButton object in the JFrame
object
- and registered an anonymous ActionListener object on
the button.
We placed a turtle object in a world
- and performed a series of
maneuvers causing the turtle to draw a square spiral.