Exam 11: GUI Applications–Part 1

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

Very few of the Swing components are coupled with peers, so they are called ________ components.

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

D

To end an application, you pass this as the argument to the JFrame class's setDefaultCloseOperation method.

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

D

This method of the JOptionPane class is used to display a confirm dialog box.

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

A

A(n) ________ is an action that takes place within a program, such as the clicking of a button.

(Multiple Choice)
4.8/5
(37)

In GUI terminology, a container that can be displayed as a window is known as a

(Multiple Choice)
4.7/5
(30)

A modal dialog box

(Multiple Choice)
4.9/5
(45)

If panel references a JPanel object, which of the following statements adds the GridLayout to it?

(Multiple Choice)
4.8/5
(36)

When using the BorderLayout manager, how many components can each region hold?

(Multiple Choice)
4.8/5
(39)

The signature of the actionPerformed method in the ActionListener interface specifies that it accepts one argument, which is an ActionEvent object.

(True/False)
4.8/5
(41)

This is a basic window that has a border around it, a title bar, and a set of buttons for minimizing, maximizing, and closing the window.

(Multiple Choice)
4.8/5
(39)

What will be displayed when the following statement is executed? JOptionPane.showMessageDialog(null, "Java is fun!");

(Multiple Choice)
4.8/5
(25)

Because the System.out.println method sends its output to the console, diagnostic messages can be displayed without interfering with the application's GUI windows.

(True/False)
5.0/5
(40)

________, which may appear alone or in groups, allow the user to make yes/no or on/off selections.

(Multiple Choice)
4.8/5
(34)

A GUI program automatically stops executing when the end of the main method is reached.

(True/False)
4.9/5
(34)

A JFrame object's content pane is automatically given a ________ manager.

(Multiple Choice)
4.9/5
(39)

The ActionListener interface is in this package.

(Multiple Choice)
4.8/5
(25)

A mutually exclusive relationship is created between radio buttons only when they are added to a ButtonGroup object.

(True/False)
4.7/5
(28)

Event listeners must

(Multiple Choice)
4.9/5
(37)

The process of connecting an event listener object to a component is called ________ the event listener.

(Multiple Choice)
4.7/5
(36)

It is possible to write the main method directly into a GUI class.

(True/False)
4.8/5
(36)
Showing 1 - 20 of 40
close modal

Filters

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