Java Reference
In-Depth Information
10 frame.setDefaultCloseOperation(JFrame.
11
12 FaceComponent component =
new
FaceComponent();
13 frame.add(component);
14
15 frame.setVisible(
true
);
16 }
17 }
69
70
Figure 25
An Alien Face
S
ELF
C
HECK
32.
Give instructions to draw a circle with center (100, 100) and radius 25.
33.
Give instructions to draw a letter ȒVȓ by drawing two line segments.
34.
Give instructions to draw a string consisting of the letter ȒVȓ.
35.
What are the RGB color values of
Color.BLUE
?
36.
How do you draw a yellow square on a red background?