1. You can use this method to make a text field read-only.
a. setReadOnly
b. setChangeable
c. setUneditable
d. setEditable
2. A JList component generates this type of event when the user selects an item.
a. action event
b. item event
c. list selection event
d. list change event
3. To display a scroll bar with a JList component, you must __________.
a. do nothing; the JList automatically appears with scroll bars if necessary
b. add the JList component to a JScrollPane component
c. call the setScrollBar method
d. none of the above; you cannot display a scroll bar with a JList component
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here