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.


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.

Computer Science & Information Technology

You might also like to view...

Write the syntax of a tcpdump command that captures packets containing IP datagrams with a source or destination IP address equal to 10.0.1.12.

What will be an ideal response?

Computer Science & Information Technology

In the accompanying figure, the ____________________ adjustment panel appears to the right of the image.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The ________ is a Windows 8 program that allows you to capture a screen display

Fill in the blank(s) with correct word

Computer Science & Information Technology

The syntax of the assignment statement that calls the prompt() function is ____.

A. variableName = prompt("optional default value"); B. variableName = ("prompt text","optional default value"); C. variableName = prompt("prompt text","optional default value"); D. variableName = "prompt text";

Computer Science & Information Technology