Exam 13: Advanced GUI Applications
Exam 1: Introduction to Computers and Java51 Questions
Exam 2: Java Fundamentals61 Questions
Exam 3: Decision Structures64 Questions
Exam 4: Loops and Files57 Questions
Exam 5: Methods60 Questions
Exam 6: A First Look at Classes58 Questions
Exam 7: Arrays and the Arraylist Class64 Questions
Exam 8: A Second Look at Classes and Objects50 Questions
Exam 9: Text Processing and More About Wrapper Classes60 Questions
Exam 10: Inheritance70 Questions
Exam 11: Exceptions and Advanced File IO56 Questions
Exam 12: A First Look at GUI Applications60 Questions
Exam 13: Advanced GUI Applications58 Questions
Exam 14: Applets and More54 Questions
Exam 15: Creating GUI Applications With Javafx and Scene Builder40 Questions
Exam 16: Recursion42 Questions
Exam 17: Databases48 Questions
Select questions type
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
(28)
When a JList component is added to a JScrollPane object, a border will automatically appear around the list.
(True/False)
4.9/5
(40)
You can create a label with an image, or with both an image and text.
(True/False)
4.8/5
(31)
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.9/5
(37)
If the letter chosen as the mnemonic is in the component's text, the first occurrence of that letter will appear ________ when the component is displayed.
(Multiple Choice)
4.9/5
(38)
Both AWT classes and Swing classes ultimately inherit from the Component class.
(True/False)
4.9/5
(41)
By default the scroll bars are always displayed in a JList component.
(True/False)
4.8/5
(36)
To add the JList object addressList to a scroll pane named scrollPane, use the following:
(Multiple Choice)
4.7/5
(42)
Which of the following statements creates a horizontal slider component with a minimum value of 0, a maximum value of 50, and an initial value of 25?
(Multiple Choice)
4.9/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.9/5
(40)
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.9/5
(34)
When an item in the combo box is selected, the combo box executes its action event listener's actionPerformed method, passing:
(Multiple Choice)
4.9/5
(44)
A label's preferred size is determined only by calling the setPreferredSize method.
(True/False)
4.9/5
(37)
Showing 41 - 58 of 58
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)