What will be the coordinates of the center of the oval?
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) (100, 100)
B) (50, 50)
C) (100, 50)
D) (125, 125)
D) (125, 125)
You might also like to view...
You can use the History panel to jump to any recent state of the image created during the ____ working session.
a. last b. recent c. archived d. historical
Suppose you need to make two overloaded operator functions for the minus operator, placing them both in the same struct definition. You can do this as long as:
A. their parameters are of different types B. one passes in one parameter, and the other passes in two parameters C. the return types are different for both D. both the return types and the parameters are of different types
Released in 1975, the ________ computer was the first personal computer
A) Altair B) Apple II C) Commodore PET D) TRS-80
In the accompanying figure, item 1 allows you to resize sections.
Answer the following statement true (T) or false (F)