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
Q16: What will happen when the following code
Q17: When an item in a Jlist object
Q18: When an item in the combo box
Q19: What will display when the following code
Q20: The default selection mode for a JList
Q22: The JComboBox class is in the:
A) javax.swing
Q23: If the letter chosen as the mnemonic
Q24: What will display when the following code
Q25: When you create an instance of the
Q26: If a user enters a value in
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents