Which line sets the color that will be used to draw "SLOW"?
Look at the following applet code:
1 import javax.swing.*;
2 import java.awt.*;
3 public class GraphicsTest extends JApplet
4 {
5 public void init()
6 {
7 getContentPane().setBackground(Color.WHITE);
8 }
9 public void paint(Graphics g)
10 {
11 super.paint(g);
12 g.setColor(Color.YELLOW);
13 g.fillOval(100, 100, 50, 50);
14 g.setColor(Color.BLACK);
15 g.setFont(new Font("SansSerif", Font.BOLD, 35));
16 g.drawString("SLOW", 110, 110);
17 }
18 }
A) 7
B) 12
C) 14
D) 16
C) 14
You might also like to view...
Update the price of all rooms by 5%.
What will be an ideal response?
The tags contain an important attribute called name that allows you to give each ____ a name.
A. frame B. window C. Web site D. file
?In a data dictionary, _____ refers to whether the data element contains numeric, alphabetic, or character values.
A. ?pool B. ?type C. ?valence D. ?domain
Case-Based Critical Thinking Question ? Cedric is a web developer who works with a graphic design team to create websites for small and medium sized businesses. Before finalizing his current project, he tests the loading speed for each page. To test at low speeds, Cedric simulates downloading the site using the lowest connection speed supported by many wireless carriers, which is known as __________.
A. DSL B. Regular 3G/Good 3G C. Regular 4G D. Regular 2G/Good 2G