Exam 13: Advanced GUI Applications

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

The following statement: textList.setSelectionMode( ListSelectModel.SINGLE_INTERVAL_SELECTION);

(Multiple Choice)
4.9/5
(48)

A menu system may consist of each of the following EXCEPT:

(Multiple Choice)
4.8/5
(38)

A read-only text field uses the JReadOnlyTextField component.

(True/False)
4.9/5
(30)

The ImageIcon class supports all the following file types, EXCEPT:

(Multiple Choice)
4.8/5
(39)

This is a specialized dialog box that allows the user to select a color from a predefined palette of colors.

(Multiple Choice)
4.9/5
(37)

When you create an instance of the JList class:

(Multiple Choice)
4.9/5
(33)

A tool tip is:

(Multiple Choice)
4.9/5
(33)

If a user enters a value in the text box of an editable combo box and the value is NOT in the list, what will the method getSelectedIndex return?

(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.9/5
(33)

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

(Multiple Choice)
4.8/5
(44)

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
(35)

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
(40)

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

(Multiple Choice)
4.7/5
(37)

What will the following code do when it is executed? JTextArea message = JTextArea(greetings, 50, 70); JScrollPane scrollPane = new JScrollPane(message);

(Multiple Choice)
4.8/5
(41)

When you write a change listener class method for a slider, it must implement the ChangeListener interface which is in the javax.swing.event package.

(True/False)
4.7/5
(31)

If a user enters a value in the text box of an editable combo box and the value is NOT in the list, what will the method getSelectedItem return?

(Multiple Choice)
4.8/5
(38)

A menu system may consist of each of the following, EXCEPT:

(Multiple Choice)
4.8/5
(41)

What will be the results of executing the following statements? X.setEditable(true); X.setText("Tiny Tim");

(Multiple Choice)
4.9/5
(37)

What will display when the following code is executed? ImagePanel = new JPanel(); ImageLabel = new JLabel(); ImagePanel.Add(imageLabel); ImageIcon sunnyFaceImage = New ImageIcon("SunnyFace.gif"); ImageLabel.setIcon(sunnyFaceImage); Pack();

(Multiple Choice)
4.8/5
(38)

A ________ object specifies a component's width and height.

(Multiple Choice)
5.0/5
(32)
Showing 21 - 40 of 58
close modal

Filters

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