Exam 13: Advanced GUI Applications

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

The Dimension class is part of the:

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

D

Which of the following assigns ALT+C as a mnemonic key for the JButton object, clearButton?

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

C

A mnemonic is:

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

C

To determine which item in a list is currently selected use:

(Multiple Choice)
4.7/5
(31)

In the following code the setPreferredSize method sets the size of the text, "Have a good day". label = new Jlabel("Have a good day", SwingConstants.CENTER); label.setPreferredSize(new Dimension(400,200));

(True/False)
5.0/5
(37)

This type of combo box combines a button with a list and allows the user to select items from its list only.

(Multiple Choice)
4.9/5
(25)

What will happen when the following code is executed? JPanel panel = new JPanel(); Color selectedColor; SelectedColor = JColorChooser.showDialog(null, "Select color", Color.BLUE);

(Multiple Choice)
4.7/5
(39)

If nameList is a JList component, use the following statement to display 4 rows in nameList.

(Multiple Choice)
4.8/5
(30)

The default directory for the JFileChooser constructor is:

(Multiple Choice)
4.7/5
(36)

What will happen when the following statement is executed? X.setEditable(False);

(Multiple Choice)
4.8/5
(25)

If the argument passed to the showOpenDialog method is null:

(Multiple Choice)
4.8/5
(41)

When creating images, the argument passed to the image parameter in the JLabel constructor can be an ImageIcon object, or any object that implements the Icon interface.

(True/False)
4.8/5
(36)

When using a slider, by default, tick marks are not displayed, and setting their spacing does not cause them to be displayed.

(True/False)
4.7/5
(42)

Java provides this component for creating lists:

(Multiple Choice)
4.8/5
(30)

Which of the following is NOT a class used in constructing a menu system?

(Multiple Choice)
4.9/5
(41)

A text field that can be changed by code in the application, but cannot be edited by the user is known as what?

(Multiple Choice)
4.8/5
(41)

The JComboBox class is in the:

(Multiple Choice)
4.8/5
(31)

To add a tool tip to a component use:

(Multiple Choice)
4.8/5
(40)

The JMenuBar method is a(n):

(Multiple Choice)
4.8/5
(39)

Which of the following is NOT a class used in constructing a menu system?

(Multiple Choice)
4.8/5
(31)
Showing 1 - 20 of 58
close modal

Filters

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