Exam 12: GUI Applications–Part 2
Exam 1: Introduction to Computers and Java40 Questions
Exam 2: Java Fundamentals40 Questions
Exam 3: A First Look at Classes and Objects40 Questions
Exam 4: Decision Structures40 Questions
Exam 5: Loops and Files40 Questions
Exam 6: A Second Look at Classes and Objects40 Questions
Exam 7: Arrays and the ArrayList Class40 Questions
Exam 8: Text Processing and Wrapper Classes40 Questions
Exam 9: Inheritance40 Questions
Exam 10: Exceptions and Advanced File I/O40 Questions
Exam 11: GUI Applications–Part 140 Questions
Exam 12: GUI Applications–Part 240 Questions
Exam 13: Applets and More40 Questions
Exam 14: Creating GUI Applications with JavaFX40 Questions
Exam 15: Recursion20 Questions
Exam 16: Databases40 Questions
Select questions type
What type of event is generated by a slider component when the knob's position is moved?
(Multiple Choice)
4.8/5
(36)
To give a combo box a text field, you must call the setEditable method and pass false as an argument.
(True/False)
4.9/5
(43)
To add a component to a scroll pane, you must pass a reference to the component as an argument to the JScrollPane constructor.
(True/False)
4.8/5
(26)
To force the JFrame that encloses a window to resize itself automatically when a larger object is placed in the frame, use the ________ method.
(Multiple Choice)
4.9/5
(38)
You can create a label with an image or text, but you cannot create a label with both an image and text.
(True/False)
4.9/5
(38)
Which of the following statements assigns the C key as the mnemonic for the JButton object referenced by clearButton?
(Multiple Choice)
4.7/5
(27)
After you create a menu item, you must add it to a JMenu component in order for it to be displayed on the menu.
(True/False)
4.8/5
(37)
If you assign the same mnemonic to more than one component in a window, it works only for the first component that you assigned it to.
(True/False)
4.8/5
(35)
When an item in a Jlist object is selected, it generates a(n)
(Multiple Choice)
4.9/5
(31)
What is the default directory for the JFileChooser constructor when you pass a String containing a valid path as an argument?
(Multiple Choice)
4.9/5
(40)
Which of the following file types is not supported by the ImageIcon class?
(Multiple Choice)
4.9/5
(33)
Which of the following statements adds the JList object referenced by namesList to the JScrollPane object referenced by namesListScrollPane?
(Multiple Choice)
4.9/5
(40)
A ________ is a collection of commands organized in one or more drop-down menus.
(Multiple Choice)
4.7/5
(37)
What does the following statement do?
JTextArea textField = JTextArea(message, 25, 15);
(Multiple Choice)
4.9/5
(32)
When using a slider, by default, tick marks are not displayed, and setting their spacing does not cause them to be displayed.
(True/False)
4.8/5
(36)
The JList and JTextArea components do not automatically display scroll bars.
(True/False)
4.8/5
(35)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)