What will display when the following code is executed?

```

JButton button =
new JButton ("It is a beautiful day.");
button.setIcon(SunnyFace.gif);
```

A) A button with the text "It is a beautiful day." to the left of the SunnyFace image
B) A button with the text "It is a beautiful day." to the right of the SunnyFace image
C) A button with the text "It is a beautiful day." below the SunnyFace image
D) A button with the text "It is a beautiful day." above the SunnyFace image


B) A button with the text "It is a beautiful day." to the right of the SunnyFace image

Computer Science & Information Technology

You might also like to view...

The "is a" relationship applies from a class to all of its superclasses.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Choose the technique below that will provide for accessibility when a web page uses graphics for the main navigation links.

a. configure an alt attribute for each navigation image b. provide text links in the page footer c. provide text hyperlinks in the page footer and configure an alt attribute for each navigation image d. no further action is needed if the image contains text

Computer Science & Information Technology

To determine equality of two collections, use the == operator.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

In the accompanying figure, the words Datasheet View at the lower left of the screen appear on the ____________________.

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

Computer Science & Information Technology