What does the following statement do?
JTextArea textField = JTextArea(message, 25, 15) ;
A) It creates a text area with 25 rows and 15 columns that will initially display the text "message."
B) It creates a text area with 25 columns and 15 rows that will initially display the text stored in the String object referenced by message.
C) It creates a text area with 25 columns and 15 rows that will initially display the text stored in the JTextArea object referenced by textField.
D) It creates a text area with 25 rows and 15 columns that will initially display the text stored in the String object referenced by message.
Correct Answer:
Verified
Q30: The Dimension class is part of the
Q31: The indices for a list or combo
Q32: Which of the following is not a
Q33: Which of the following statements assigns the
Q34: The ListSelectionListener interface is in the _
Q35: What type of event is generated by
Q36: To give a combo box a text
Q37: The appearance of a particular system's GUI
Q38: The JList and JTextArea components do not
Q55: When using a slider, by default, tick
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