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() ;
Correct Answer:
Verified
Q19: The class Graphics is an abstract class.
Q20: You cannot convert a GUI application into
Q21: How many inches is 12-point font?
A) 1/6
B)
Q22: Does an applet compile like any other
Q23: Which of the following methods does the
Q25: If graph holds a Graphics object, which
Q26: Which applet method is called by the
Q27: What class must be extended when you
Q28: Which of the following sets the background
Q29: What HTML tags begin and end a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents