Exam 19: Graphical User Interfaces
Exam 1: Introduction98 Questions
Exam 2: Using Objects76 Questions
Exam 3: Implementing Classes103 Questions
Exam 4: Fundamental Data Types125 Questions
Exam 5: Decisions120 Questions
Exam 6: Loops128 Questions
Exam 7: Arrays and Array Lists118 Questions
Exam 8: Designing Classes95 Questions
Exam 9: Inheritance101 Questions
Exam 10: Interfaces85 Questions
Exam 11: Inputoutput and Exception Handling109 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion110 Questions
Exam 14: Sorting and Searching109 Questions
Exam 15: The Java Collections Framework110 Questions
Exam 16: Basic Data Structures104 Questions
Exam 17: Tree Structures110 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Graphical User Interfaces76 Questions
Exam 20: Streams and Binary Inputoutput82 Questions
Exam 21: Multithreading82 Questions
Exam 22: Internet Networking74 Questions
Exam 23: Relational Databases75 Questions
Exam 24: XML74 Questions
Exam 25: Web Applications75 Questions
Select questions type
What is the easiest way to create complex-looking GUI layouts?
I use the GridBagLayout manager
II nest panels, each with its own layout manager
III use multiple layout managers in the same container
(Multiple Choice)
4.9/5
(28)
____________________ are round and have a black dot when selected.
(Multiple Choice)
4.7/5
(36)
For a new programmer using the Swing JSlider component for the first time, which of these is the least important thing to know?
(Multiple Choice)
4.9/5
(33)
When method makeMenuItem is called, how many objects are being created? public JMenuItem makeMenuItem(final String menuLabel)
{
JMenuItem mi = new JMenuItem(menuLabel);
Class MyMenuListener implements ActionListener
{
Public void actionPerformed(ActionEvent
(Multiple Choice)
4.8/5
(39)
How do the lifetimes of the three objects menuLabel, mi, and the anonymous object new MyMenuListener()compare? public JMenuItem makeMenuItem(final String menuLabel)
{
JMenuItem mi = new JMenuItem(menuLabel);
Class MyMenuListener implements ActionListener
{
Public void actionPerformed(ActionEvent
(Multiple Choice)
4.8/5
(34)
Which layout manager may change the location and size of existing components when new ones are added?
I FlowLayout
II BorderLayout
III GridLayout
(Multiple Choice)
4.8/5
(39)
When adding a component to a container with the ____ layout, specify the NORTH, EAST, SOUTH, WEST, or CENTER position.
(Multiple Choice)
4.9/5
(39)
When a menu item is selected, what type of event does it send?
(Multiple Choice)
4.8/5
(42)
Suppose a JPanel with a BorderLayout manager contains two components: component1, which was added to the NORTH, and component2, which was added to the SOUTH. Which parts of the JPanel will appear?
I North
II South
III Center
IV West
V East
(Multiple Choice)
4.8/5
(44)
Which component can be added to a menu?
I JMenuBar
II JMenu
III JMenuItem
(Multiple Choice)
4.7/5
(40)
Which elements of creating a graphical user interface are made easier by a GUI builder?
I creating event handlers
II configuring component properties
III adding components
(Multiple Choice)
4.9/5
(40)
The JFrame has a content pane with a default BorderLayout manager. Which method allows changing it to a FlowLayout manager?
(Multiple Choice)
4.7/5
(29)
Examine the code below. What type of class is MyMenuListener? public JMenuItem makeMenuItem(String menuLabel)
{
JMenuItem mini = new JMenuItem(menuLabel);
Class MyMenuListener implements ActionListener
{
Public void actionPerformed(ActionEvent
(Multiple Choice)
4.9/5
(37)
How do you add two buttons to the south area of a frame using the BorderLayout?
(Multiple Choice)
4.9/5
(37)
What features do GUI builders have to speed the development of the graphical user interface of the program?
I setting properties of dialog boxes
II automated event-handling code generation
III drag and drop of visual components
(Multiple Choice)
4.7/5
(38)
The documentation for the JSlider class lists ____ inherited methods.
(Multiple Choice)
4.8/5
(34)
A ________ is a user-interface component with two states: checked and unchecked.
(Multiple Choice)
4.9/5
(38)
Showing 21 - 40 of 76
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)