Multiple Choice
What will be displayed when the following code is executed?
JLabel myLabel = new JLabel ("It's a beautiful morning!") ; myLabel.setIcon(SunnyFace.gif) ;
A) A label will be displayed with the text "It's a beautiful morning!" appearing below the SunnyFace.gif image.
B) A label will be displayed with the text "It's a beautiful morning!" appearing above the SunnyFace.gif image.
C) A label will be displayed with the text "It's a beautiful morning!" appearing to the left of the SunnyFace.gif image.
D) A label will be displayed with the text "It's a beautiful morning!" appearing to the right of the SunnyFace.gif image.
Correct Answer:

Verified
Correct Answer:
Verified
Q6: The JComboBox class is in this package.<br>A)
Q7: If you call the JTextField component's setEditable
Q8: What is returned by the JList class's
Q9: What will be the result when the
Q10: A mnemonic is<br>A) a single key on
Q12: The appearance of a particular system's GUI
Q13: Which of the following statements creates a
Q14: If myList is a JList component, what
Q15: Just like regular radio button components, you
Q16: If nameList is an instance of a