Self-Review Exercises

13.1 Fill in the blanks in each of the following statements:

a) In Java 2D, method _________ of class __________ sets the characteristics of a stroke used to draw a shape.

b) Class __________ helps specify the fill for a shape such that the fill gradually changes from one color to another.

c) The _________ method of class Graphics draws a line between two points.

d) RGB is short for __________, __________ and __________.

e) Font sizes are measured in units called _________.

f) Class _________ helps specify the fill for a shape using a pattern drawn in a BufferedImage.

13.2 State whether each of the following is true or false. If false, explain why.

a) The first two arguments of Graphics method drawOval specify the center ...

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.