Quiz 11
Wednesday
With a piece of paper, write down your name and answers to the following questions.
What method do you use to place a
JMenuBar
on aJFrame
?setJMenuBar
placeJMenuBar
addJMenuBar
insertJMenuBar
What is the default selection mode for
JList
?- single selection
- multiple selection
- single interval selection
- multiple interval selection
Describe what the following program does.
What is displayed in the window?
The window it titled as “Quiz #11 Question #4”. The window contains a button with text “Button”.
What happens when the button is pressed?
When the button is clicked, a message window appears, centered on top of the main window. This popup window is titled as “Popup Message” and it contains a message “Hello World”.