What is the color of the polygon?
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 int[] xCoords = {20, 20, 60, 100, 140, 140, 100, 60};
12 int[] ycoords = {20, 100, 140, 140, 100, 60, 20, 20};
13 super.paint(g);
14 g.setColor(Color.YELLOW);
15 g.fillPolygon(xCoords, yCoords, 8);
16 g.setColor(color.BLACK);
17 g.setFont(new Font("SansSerif", Font.BOLD, 35));
18 g.drawString("SLOW", 35, 95);
19 }
20 }
A) White
B) Yellow
C) Black
D) None of the above
B) Yellow
You might also like to view...
Which is not true of Windows XP mode?
a. The computer must be running Windows 7 Professional, Enterprise, or Ultimate. b. The computer hardware must be capable of virtualization. c. The BIOS must support virtualization. d. An application installed in Windows XP only appears in the Windows XP Start menu, and not the Windows 7 Start menu.
Tracing is a method used to verify the logical operations executed by a computer application.
Answer the following statement true (T) or false (F)
Another name for a wireframe is ____________________.
Fill in the blank(s) with the appropriate word(s).
In Flash, you can create animation literally frame by frame or have Flash do some-or all-of the work for you.
Answer the following statement true (T) or false (F)