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
The default selection mode for a JList component is
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
C
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:
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)
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)
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)
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)
Which of the following is not a class used in constructing a menu system?
(Multiple Choice)
4.7/5
(35)
Showing 1 - 20 of 46
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)