Listings
- Listing 1. Beginning of the class named Prob10Runner.
- Listing 2. Beginning of the constructor for the Prob10Runner class.
- Listing 3. Construct the GUI for the slider.
- Listing 4. Rotate and display the butterfly.
- Listing 5. Register a ChangeListener on the slider.
- Listing 6. Beginning of the rotatePicture method.
- Listing 7. Set up the translation transform.
- Listing 8. Concatenate the transforms.
- Listing 9. Transform and draw the butterfly image.
- Listing 10. Source code for Prob10.