O'Reilly logo

Java™ How to Program, Seventh Edition by P. J. Deitel - Deitel & Associates, Inc., H. M. Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

12.4Fill in the blanks in each of the following statements:
  1. Class_________of the Java 2D API is used to draw ovals.

  2. Methods draw and fill of class Graphics2D require an object of type_________as their argument.

  3. The three constants that specify font style are_________,_________and_________.

  4. Graphics2D method_________sets the painting color for Java 2D shapes.

12.5State whether each of the following is true or false. If false, explain why.
  1. Graphics method drawPolygon automatically connects the endpoints of the polygon.

  2. Graphics method drawLine draws a line between two points.

  3. Graphics method fillArc uses degrees to specify the angle.

  4. In the Java coordinate system, values on the y-axis increase from left to right.

  5. Graphics inherits directly ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required