Multiple Choice
What will the following code do when it is executed?
JTextArea message = JTextArea(greetings, 50, 70) ;
JScrollPane scrollPane = new JScrollPane(message) ;
A) It will create a JScrollPane object for the JTextArea object referenced by message and display a horizontal scroll bar on the text area.
B) It will create a JScrollPane object for the JTextArea object referenced by message and display a vertical scroll bar on the text area.
C) It will create a JScrollPane object for the JTextArea object referenced by message and display both vertical and horizontal scroll bars on the text area.
D) It will create a JScrollPane object for the JTextArea object referenced by message and display no scroll bars on the text area.
Correct Answer:

Verified
Correct Answer:
Verified
Q29: To force the JFrame that encloses a
Q30: When an item in a Jlist object
Q31: If addressList is a JList component, what
Q32: What will display when the following code
Q33: What does the following statement do?<br>JTextArea textField
Q35: When you write a change listener class
Q36: If a user enters a value in
Q37: A menu system may consist of each
Q38: What will be the results of executing
Q39: What will display when the following code