Quiz 10
Friday
With a piece of paper, write down your name and answers to the following questions.
What method do you use to make a text field,
JTextField
, read-only?setChangeable(false)
setEditable(false)
setReadOnly(true)
setUneditable(true)
Which of the following is the name of a small box that contains text and appears when the mouse is hovered over a component.
- mnemonic
- pop-up help
- instance message
- tool tip
Describe what the following program does.
What is displayed in the window?
The window it titled as “Quiz #10 Question #4”. The window contains a button with text “Button” and a text area.
What happens when the button is pressed?
When the button is clicked, a new line of text, “Hello”, is appended to the text area.