
4.6 Chapter Summary 199
DISCUSSION QUESTIONS
1. If you define the starting (x,y) coordinate of the drawing as (400,400) you might not
be able to see the drawing.Explain why and what the user can do to make the draw-
ing visible.
2. What is the advantage to drawing a figure using a starting (x,y) coordinate?
?
4.5 Programming Activity 1: Writing an Applet with Graphics
In this Programming Activity, you will write an applet that uses graphics.
You will draw a picture of your own design. The objective of this program-
ming activity is to gain experience with the window coordinate system, the
draw and fill graphics methods, and using colors.
1. Start with the ...