Solved

What Will Display When the Following Code Is Executed: JLabel

Question 32

Multiple Choice

What will display when the following code is executed: JLabel label = new JLabel ("It is a beautiful morning.") ;
Labed.setIcon(SunnyFace.gif) ;


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

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions