Multiple Choice
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
Correct Answer:

Verified
Correct Answer:
Verified
Q40: A _ object specifies a component's width
Q41: The default selection mode for a JList
Q42: What will be the results of executing
Q43: When a JList component is added to
Q44: You can create a label with an
Q46: If the letter chosen as the mnemonic
Q47: Both AWT classes and Swing classes ultimately
Q48: The getSelectedIndex method returns:<br>A) the index of
Q49: Images may be displayed in labels and:<br>A)
Q50: By default the scroll bars are always