Exam 12: Advanced Guis and Graphics

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A Java applet is the same as a Java GUI application program.

Free
(True/False)
4.7/5
(37)
Correct Answer:
Verified

False

Applets use the init method in place of constructors to initialize various GUI components and data members.

Free
(True/False)
4.9/5
(41)
Correct Answer:
Verified

True

JCheckBox is a subclass of the abstract class ToggleButton.

Free
(True/False)
4.9/5
(36)
Correct Answer:
Verified

True

Which of the following constructors would produce the color white?

(Multiple Choice)
4.7/5
(35)

Which of the following is NOT included in the Java applet in the accompanying figure?

(Multiple Choice)
4.9/5
(38)

You must import the package javax.swing in order to use the methods in the class Font.

(True/False)
4.9/5
(33)

JTextAreas can be used to display multiple lines of text.

(True/False)
4.9/5
(31)

The R in RGB stands for Right.

(True/False)
4.8/5
(40)

Item events are handled by the interface ItemListener, which contains only the abstract method itemStateChanged.

(True/False)
4.9/5
(43)

A mouse can generate ____ different types of events.

(Multiple Choice)
4.9/5
(41)

The paint method is used to get data from the user.

(True/False)
4.9/5
(36)

The class JComponent is part of the package javax.swing.

(True/False)
4.8/5
(34)

What class can be used to generate a random number?

(Multiple Choice)
4.8/5
(39)

You can create an applet by extending the class JFrame.

(True/False)
4.8/5
(34)

You can create instances of Color by mixing red, green, and blue hues in various proportions.

(True/False)
4.7/5
(36)

What HTML tags begin and end a Web page? A) <HEADING> </HEADING> C) <HTML> </HTML> B) <BODY> </BODY> D) <OBJECT> </OBJECT>

(Short Answer)
4.8/5
(37)

Given Graphics object graph, which statement can you use to change the pen color to red?

(Multiple Choice)
4.7/5
(28)

Like Java application programs, Java applets have the method main.

(True/False)
4.7/5
(40)

You can use the methods Background and Foreground to set the background and foreground colors of a component.

(True/False)
4.8/5
(30)

In which of the following layout managers do all rows (columns) have the same number of components and all components have the same size?

(Multiple Choice)
4.8/5
(36)
Showing 1 - 20 of 49
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)