Given Graphics object graph, which statement can you use to change the pen color to red?

A. graph.setColor(Color.red);
B. graph.setPen(Color.red);
C. setForeground(red);
D. graph.getRed();

Answer: A

Computer Science & Information Technology

You might also like to view...

________ is not a type of system worker thread.

a) Asynchronous b) Delayed c) Critical d) Hypercritical

Computer Science & Information Technology

The ________ is a temporary location for things that are being moved or copied.

A. path B. directory C. clipboard D. library

Computer Science & Information Technology