Exam 12: GUI Applications–Part 2

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

What type of event is generated by a slider component when the knob's position is moved?

(Multiple Choice)
4.8/5
(36)

The Dimension class is part of the ________ package.

(Multiple Choice)
4.7/5
(35)

To give a combo box a text field, you must call the setEditable method and pass false as an argument.

(True/False)
4.9/5
(43)

To add a component to a scroll pane, you must pass a reference to the component as an argument to the JScrollPane constructor.

(True/False)
4.8/5
(26)

To force the JFrame that encloses a window to resize itself automatically when a larger object is placed in the frame, use the ________ method.

(Multiple Choice)
4.9/5
(38)

You can create a label with an image or text, but you cannot create a label with both an image and text.

(True/False)
4.9/5
(38)

Which of the following statements assigns the C key as the mnemonic for the JButton object referenced by clearButton?

(Multiple Choice)
4.7/5
(27)

After you create a menu item, you must add it to a JMenu component in order for it to be displayed on the menu.

(True/False)
4.8/5
(37)

If you assign the same mnemonic to more than one component in a window, it works only for the first component that you assigned it to.

(True/False)
4.8/5
(35)

When an item in a Jlist object is selected, it generates a(n)

(Multiple Choice)
4.9/5
(31)

What is the default directory for the JFileChooser constructor when you pass a String containing a valid path as an argument?

(Multiple Choice)
4.9/5
(40)

Which of the following file types is not supported by the ImageIcon class?

(Multiple Choice)
4.9/5
(33)

Which of the following statements adds the JList object referenced by namesList to the JScrollPane object referenced by namesListScrollPane?

(Multiple Choice)
4.9/5
(40)

A ________ is a collection of commands organized in one or more drop-down menus.

(Multiple Choice)
4.7/5
(37)

What does the following statement do? JTextArea textField = JTextArea(message, 25, 15);

(Multiple Choice)
4.9/5
(32)

When you create an instance of the JList class,

(Multiple Choice)
4.9/5
(33)

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.8/5
(36)

The JList and JTextArea components do not automatically display scroll bars.

(True/False)
4.8/5
(35)

A tool tip is

(Multiple Choice)
4.9/5
(43)

The indices for a list or combo box start at 1, not 0.

(True/False)
4.7/5
(39)
Showing 21 - 40 of 40
close modal

Filters

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