Exam 15: Advanced Gui Topics
Exam 1: Creating Java Programs61 Questions
Exam 2: Using Data67 Questions
Exam 3: Using Methods Classes and Objects66 Questions
Exam 4: More Object Concepts66 Questions
Exam 5: Making Decisions66 Questions
Exam 6: Looping66 Questions
Exam 7: Characters Strings and the Stringbuilder68 Questions
Exam 8: Arrays66 Questions
Exam 9: Advanced Array Concepts66 Questions
Exam 10: Introduction to Inheritance66 Questions
Exam 11: Advanced Inheritance Concepts66 Questions
Exam 12: Exception Handling66 Questions
Exam 13: File Input and Output66 Questions
Exam 14: Introduction to Swing Components66 Questions
Exam 15: Advanced Gui Topics66 Questions
Exam 16: Graphics66 Questions
Select questions type
Describe the purpose of an accelerator. Provide an example of an accelerator
(Essay)
4.9/5
(32)
Write the statement to establish a GridLayout with three horizontal rows and six vertical columns in a Container named myGrid .
(Short Answer)
4.9/5
(31)
The FlowLayout class contains three constants you can use to align Component s with a ____ .
(Multiple Choice)
4.7/5
(45)
The above figure shows a JFrame with a horizontal JMenuBar named myMenu that holds two JMenu s: menu1 and menu2 . A submenu and JMenuItem s also exist with the Colors yellows , blues , and greens . Using the add() method, write the statements to add the JMenu s to the JMenuBar , and write the statements to add a submenu and JMenuItem s to the Colors menu.

(Essay)
4.8/5
(38)
Write the statement that will provide a shortcut menu key for a menu named myShortcutMenu . When a user presses Alt+F on the keyboard, the statement will set the F in File (shown in the above figure) as the mnemonic.

(Short Answer)
4.9/5
(31)
An additional layered pane exists above the root pane, but it is not often used explicitly by Java programmers.
(True/False)
4.8/5
(37)
When components in a Swing UI require more display area than they have been allocated, you can use a ____ container to hold the components and allow the user to display the components using scroll bars.
(Multiple Choice)
4.8/5
(39)
How would you arrange columns into equal rows and columns? Provide an example.
(Essay)
4.8/5
(33)
If you wanted to see the x-coordinate of a user click, you would use the ____ method of the MouseEvent class.
(Multiple Choice)
4.8/5
(35)
With ____, a redrawn JPanel is displayed only when it is complete; this provides the viewer with updated screens that do not flicker while being redrawn.
(Multiple Choice)
4.9/5
(39)
Describe the way in which components expand to fill their layout areas in FlowLayout and BorderLayout .
(Essay)
4.9/5
(41)
To force the display of a scroll bar, you can use class variables defined in the ScrollPaneConstants class. What are they?
(Essay)
4.8/5
(33)
The JMenu s are added to the JMenuBar using the ____ method.
(Multiple Choice)
4.8/5
(41)
Use the ____ layout manager when you add components to a maximum of five sections.
(Multiple Choice)
4.8/5
(34)
Write the statement to set the background color of a button named goBtn to a color of green.
(Short Answer)
4.8/5
(32)
When you use BorderLayout , you are required to add components into each of the five regions.
(True/False)
4.8/5
(33)
What are the four methods defined in the Component class for adding event listeners?
(Essay)
4.9/5
(38)
A(n) ____________________ is a plain, borderless surface that can hold lightweight GUI components.
(Short Answer)
4.9/5
(33)
Showing 21 - 40 of 66
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)