Examlex
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"?
E-mail Etiquette
The set of rules and guidelines for composing and sending emails in a professional and courteous manner, aiming to improve communication and avoid misunderstandings.
Abbreviations
Shortened forms of words or phrases used to simplify communication, often by using the initial letters of words.
Business-Oriented
Focused or designed primarily to meet the needs of businesses, often in terms of products, services, or strategies.
Q1: What will be the value of bonus
Q6: You use this method to determine the
Q9: These are Java programs that are usually
Q13: What will the following code display?<br>String input
Q23: Look at the following pseudocode algorithm: algorithm
Q28: When using the BorderLayout manager, how many
Q29: To force the JFrame that encloses a
Q48: The getSelectedIndex method returns:<br>A) the index of
Q57: What does the following statement do?<br>AddButton.addActionListener(new AddButtonListener());<br>A)
Q313: What do SMART criteria for successful objective