Exam 13: Advanced Gui Applications

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

The default selection mode for a JList component is

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

C

To add a tool tip to a component use

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

A

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

Free
(True/False)
4.8/5
(39)
Correct Answer:
Verified

True

A label's preferred size is determined only by calling the setPreferredSize method.

(True/False)
4.8/5
(33)

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

(Multiple Choice)
4.7/5
(30)

If addressList is a JList component,what will the value of x be after the following statement is executed? x = addressList.getSelectedIndex();

(Multiple Choice)
4.8/5
(48)

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

(Multiple Choice)
4.8/5
(32)

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

(Multiple Choice)
4.8/5
(37)

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)
4.9/5
(30)

To add the JList object addressList to a scroll pane named scrollPane,use the following

(Multiple Choice)
4.7/5
(39)

A menu system may consist of each of the following,except

(Multiple Choice)
4.8/5
(41)

If the combo box addressBox contains a list of strings,why is the returned value of getSelectedItem method in the following code cast to String? String selectedAddress; SelectedAddress = (String)addressBox.getSelectedItem();

(Multiple Choice)
4.8/5
(38)

A mnemonic is

(Multiple Choice)
4.9/5
(32)

What will display when the following code is executed: JLabel label = new JLabel ("It is a beautiful morning."); Labed.setIcon(SunnyFace.gif);

(Multiple Choice)
4.9/5
(37)

The JComboBox class is in the

(Multiple Choice)
4.7/5
(38)

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

(Multiple Choice)
4.8/5
(31)

A tool tip is

(Multiple Choice)
4.9/5
(37)

The default directory for the JFileChooser constructor is

(Multiple Choice)
4.8/5
(42)

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

(Multiple Choice)
4.7/5
(35)

When you create an instance of the JList class,

(Multiple Choice)
4.8/5
(35)
Showing 1 - 20 of 46
close modal

Filters

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