Exam 7: A First Look at Gui Applications

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

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.

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

C

This layout manager arranges components in five regions.

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

B

You would use this command at the operating system command line to execute the code in the MyApplication class and display the graphic image Logo·jpg as a splash screen.

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

B

When adding components to a container that is governed by the GridLayout manager,

(Multiple Choice)
4.8/5
(37)

The minimize button,maximize button,and close button on a window are sometimes referred to as

(Multiple Choice)
4.8/5
(36)

To use the ActionListener interface,as well as other event listener interfaces,you must have the following import statement in your code:

(Multiple Choice)
4.9/5
(37)

How many radio buttons can be selected at the same time as the result of the following code? hours = new JRadioButton("Hours"); Minutes = new JRadioButton("Minutes"); Seconds = new JRadioButton("Seconds"); Days = new JRadioButton("Days"); Months = new JRadioButton("Months"); Years = new JRadioButton("Years"); TimeOfDayButtonGroup = new ButtonGroup(); DateButtonGroup = new ButtonGroup(); TimeOfDayButtonGroup.add(hours); TimeOfDayButtonGroup.add(minutes); TimeOfDayButtonGroup.add(seconds); DateButtonGroup.add(days); DateButtonGroup.add(months); DateButtonGroup.add(years);

(Multiple Choice)
4.9/5
(33)

In a Swing application,you create a frame object from the

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.9/5
(38)

The ActionEvent argument that is passed to an action listener's actionPerformed method is the event object that was generated in response to an event.

(True/False)
4.8/5
(43)

JFC stands for

(Multiple Choice)
4.7/5
(29)

These types of components are coupled with their underlying peers.

(Multiple Choice)
4.8/5
(42)

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

(Multiple Choice)
5.0/5
(45)

Assume that the variable checkbox references a JCheckBox object.To determine whether the check box has been selected,use the following code.

(Multiple Choice)
4.7/5
(37)

If button1 is a JButton object,which of the following statements will make its background blue?

(Multiple Choice)
4.9/5
(33)

When a splash screen is displayed,the application does not load and execute until the user clicks the splash screen image with the mouse.

(True/False)
4.8/5
(39)

What does the following statement do? addButton.addActionListener(new AddButtonListener());

(Multiple Choice)
4.8/5
(46)

________ is a library of classes that do not replace ________,but provide an improved alternative for creating GUI applications.

(Multiple Choice)
4.9/5
(33)

This layout manager arranges components in regions named North,South,East,West,and Center.

(Multiple Choice)
4.8/5
(28)

Event listeners must

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

Filters

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