Top Posters
Since Sunday
g
3
3
2
J
2
p
2
m
2
h
2
s
2
r
2
d
2
l
2
a
2
New Topic  
Oughto Oughto
wrote...
Posts: 742
Rep: 1 0
7 years ago
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 }

Which line sets the color that will be used to draw "SLOW"?
A) 7
B) 16
C) 14
D) 12
Textbook 
Starting Out with Java: Early Objects

Starting Out with Java: Early Objects


Edition: 4th
Author:
Read 208 times
3 Replies
Replies
Answer verified by a subject expert
ToothyToothy
wrote...
Top Poster
Posts: 744
Rep: 4 0
7 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

Oughto Author
wrote...
7 years ago
good riddance to this computer class, never want to code again lol
wrote...
7 years ago
Good luck tackling the rest
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1095 People Browsing
 135 Signed Up Today
Related Images
  
 260
  
 368
  
 337
Your Opinion
Which industry do you think artificial intelligence (AI) will impact the most?
Votes: 352