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
(27)
Correct Answer:
Verified

D

Some common lightweight component features supported by JComponent include:

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

D

When the arrow on a JComboBox is clicked:

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

D

A JScrollPane is provided automatically for which of the following?

(Multiple Choice)
4.8/5
(35)

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

(Multiple Choice)
4.8/5
(31)

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

(Multiple Choice)
4.9/5
(32)

Method getSelectedValues of class JList returns:

(Multiple Choice)
4.8/5
(39)

The BorderLayout layout manager:

(Multiple Choice)
4.8/5
(26)

In what cases are adapter classes useful?

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.7/5
(41)

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

(Multiple Choice)
4.7/5
(34)

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

(Multiple Choice)
4.8/5
(35)

JLabel can be attached to a JFrame using method ________.

(Multiple Choice)
4.8/5
(30)

The setMaximumRowCount method is used for:

(Multiple Choice)
4.9/5
(35)

Which of the following statements about a JLabel is false?

(Multiple Choice)
5.0/5
(31)

Which layout manager is the default for JFrame?

(Multiple Choice)
4.9/5
(33)

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

(Multiple Choice)
4.8/5
(34)

Which of the following statements for a JTextField is false?

(Multiple Choice)
5.0/5
(38)

Which of the following does not generate GUI events?

(Multiple Choice)
5.0/5
(36)

Class Point represents ________.

(Multiple Choice)
4.8/5
(24)
Showing 1 - 20 of 78
close modal

Filters

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