Exam 13: Advanced Gui Applications
Exam 1: Introduction to Computers and Java42 Questions
Exam 2: Java Fundamentals53 Questions
Exam 3: Decision Structures52 Questions
Exam 4: Loops and Files48 Questions
Exam 5: Methods50 Questions
Exam 6: A First Look at Classes49 Questions
Exam 7: A First Look at Gui Applications49 Questions
Exam 8: Arrays and the Arraylist Class52 Questions
Exam 9: A Second Look at Classes and Objects40 Questions
Exam 10: Text Processing and More About Wrapper Classes49 Questions
Exam 11: Inheritance49 Questions
Exam 12: Exceptions and Advanced File Io46 Questions
Exam 13: Advanced Gui Applications46 Questions
Exam 14: Applets and More39 Questions
Exam 15: Recursion34 Questions
Exam 16: Sorting, Searching, and Algorithm Analysis46 Questions
Exam 17: Generics50 Questions
Exam 18: Collections50 Questions
Exam 19: Array-Based Lists20 Questions
Exam 20: Linked Lists36 Questions
Exam 21: Stacks and Queues36 Questions
Exam 22: Binary Trees, Avl Trees, and Priority Queues45 Questions
Select questions type
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)