Exam 24: Swing Gui Components

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

Which of the following is the method used to display a dialog box to gather input?

Free
(Multiple Choice)
4.8/5
(62)
Correct Answer:
Verified

D

Some common lightweight component features supported by JComponent include:

Free
(Multiple Choice)
4.8/5
(79)
Correct Answer:
Verified

D

When the arrow on a JComboBox is clicked:

Free
(Multiple Choice)
4.9/5
(89)
Correct Answer:
Verified

D

A JScrollPane is provided automatically for which of the following?

(Multiple Choice)
4.8/5
(80)

Which of the following is not necessary to use the event delegation model?

(Multiple Choice)
4.8/5
(75)

Method _____________-can be used to set the layout manager of a container.

(Multiple Choice)
4.9/5
(83)

Method getSelectedValues of class JList returns:

(Multiple Choice)
4.8/5
(86)

The BorderLayout layout manager:

(Multiple Choice)
4.9/5
(62)

In what cases are adapter classes useful?

(Multiple Choice)
4.9/5
(85)

When a component is_________- , paintComponent clears the component's background before the component is displayed.

(Multiple Choice)
4.7/5
(87)

Which JFrame constant indicates that the program should terminate when the window is closed by the user?

(Multiple Choice)
4.7/5
(80)

Which MouseEvent method can be used to determine if the Alt key is pressed?

(Multiple Choice)
4.8/5
(78)

JLabel can be attached to a JFrame using method ________.

(Multiple Choice)
4.9/5
(78)

The setMaximumRowCount method is used for:

(Multiple Choice)
4.9/5
(82)

Which of the following statements about a JLabel is false?

(Multiple Choice)
5.0/5
(72)

Which layout manager is the default for JFrame?

(Multiple Choice)
4.9/5
(85)

Which region is used by default when a Component is added to a BorderLayout?

(Multiple Choice)
4.8/5
(62)

Which of the following statements for a JTextField is false?

(Multiple Choice)
5.0/5
(85)

Which of the following does not generate GUI events?

(Multiple Choice)
4.9/5
(78)

Class Point represents ________.

(Multiple Choice)
4.9/5
(70)
Showing 1 - 20 of 78
close modal

Filters

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