What does the following statement do?
JTextArea textField = JTextArea(message, 25, 15) ;
A) It creates a text area with 25 columns and 15 rows that will initially display the text stored in the String object message.
B) It creates a text area with 25 columns and 15 rows that will initially display the text stored in the text area textField.
C) It creates a text area with 25 rows and 15 columns that will initially display the text stored in the String object message.
D) It creates a text area with 25 rows and 15 columns that will initially display the text "message".
Correct Answer:
Verified
Q48: Which of the following is NOT a
Q49: A label's preferred size is determined only
Q50: A menu within a menu is called
Q51: If the argument passed to the showOpenDialog
Q52: By default the scroll bars are always
Q53: A read-only text field uses the JReadOnlyTextField
Q54: When creating images, the argument passed to
Q55: When using a slider, by default, tick
Q57: Both AWT classes and Swing classes ultimately
Q58: You can create a label with an
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