|
Question 1.
(d) g.drawOval
(60,60,40,40);
Remember:
the radius is only half the height and width of a circle, (diameter.)
Question 2.
(b) g.fillArc
(10,10,50,50, 0, 90);
Question 3.
(c) g.fill3DRect
(10,10,100,100, true);
Question 4.
(b) g.drawRect
(10,10,100,100);
Question 5.
(d)
g.drawLine(10,10,10,110);
Question
6.
drawString
(take
note of the capital S)
|
Question
7.
setColor
(take
note of the capital C and American spelling of Color)
Question 8.
(d)
Font aFont = new Font( "Arial", Font.BOLD + Font.ITALIC, 12 );
Question 9.
setFont
(take
note of the capital F)
Question 10.
(a) Color aColor
= new Color( 50,0,0 );
Note:-
don't forget, method names start with a lowercase letter while classes start
with a capital letter.
|
|