Exam 13: Advanced Gui Applications

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

What will happen when the following statement is executed? x.setEditable(false);

(Multiple Choice)
4.7/5
(38)

What will be the results of executing the following code,if the user simply clicks OK? JPanel panel = new JPanel(); Color selectedColor; SelectedColor = JColorChooser.showDialog(null, "Select color",Color.blue); Panel.setForeground(selectedColor);

(Multiple Choice)
4.7/5
(33)

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

When a JList component is added to a JScrollPane object,a border will automatically appear around the list.

(True/False)
4.9/5
(33)

The JMenuBar method is a(n)

(Multiple Choice)
4.8/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
(37)

When an item in the combo box is selected,the combo box executes its action event listener's actionPerformed method,passing

(Multiple Choice)
4.7/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
(32)

If the argument passed to the showOpenDialog method is null,

(Multiple Choice)
4.9/5
(27)

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

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

(Multiple Choice)
4.8/5
(41)

The Dimension class is part of the

(Multiple Choice)
4.8/5
(35)

If addressList exists and has values stored in it and addrList is an array with values stored in it,what will be the results when the following code is executed? addressList.setListData(addrList);

(Multiple Choice)
4.7/5
(30)

To determine which item in a list is currently selected use

(Multiple Choice)
4.8/5
(33)

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

What will display when the following code is executed: JButton button = New JButton ("It is a beautiful day."); Button.setIcon(SunnyFace.gif);

(Multiple Choice)
4.7/5
(29)

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

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

(True/False)
4.9/5
(37)

By default the scroll bars are always displayed in a JList component.

(True/False)
4.9/5
(44)

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

(Multiple Choice)
4.8/5
(50)
Showing 21 - 40 of 46
close modal

Filters

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