Exam 17: Swing I

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

A Swing program does not end until it encounters a System.exit statement.

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

True

A button fires events know as:

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

D

Standard layout managers are defined in the ____________ package.

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

C

A ____________ is the smallest unit of space on which your screen can write.

(Multiple Choice)
4.7/5
(37)

GUIs are windowing interfaces that handle user input and output.

(True/False)
4.9/5
(39)

The JFrame method setVisible()takes one argument of type:

(Multiple Choice)
4.7/5
(40)

The _____________ manager places components into five regions.

(Multiple Choice)
4.9/5
(35)

One of the main functions of JPanel objects is to subdivide a JFrame (or other container)into different areas.

(True/False)
4.8/5
(33)

The actionPerformed method of the ActionListener interface returns a Boolean value.

(True/False)
4.9/5
(36)

The event-driven paradigm requires implementing methods that will never be invoked.

(True/False)
4.9/5
(33)

A menu item is an object of the class:

(Multiple Choice)
4.8/5
(32)

Composition indicates a/an _______________ relationship.

(Multiple Choice)
5.0/5
(38)

Create a Java GUI application that contains a label and a button.The label reads "Click the button to change the background color." When the button is clicked,the background is changed to a different color.

(Essay)
4.9/5
(41)

Inheritance indicates a/an ____________ relationship.

(Multiple Choice)
4.9/5
(28)

Write Java statements to add the menu created in number 7 above to the menu bar.

(Essay)
4.7/5
(34)

Add button functionality to the resulting GUI of number 2 above.When the button is clicked,the title of the window changes to "Modified First Window".

(Essay)
4.7/5
(44)

The ActionListener interface requires that the method ____________ be implemented.

(Multiple Choice)
4.8/5
(32)

The close-window button is in the class JButton.

(True/False)
4.8/5
(34)

A programming style that uses a signal and response approach to programming is called:

(Multiple Choice)
5.0/5
(43)

The _______________ manager arranges components in a two-dimensional table with some number of rows and columns.

(Multiple Choice)
4.8/5
(44)
Showing 1 - 20 of 37
close modal

Filters

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