Solved

Which of the Following Expressions Creates a JLabel That Displays

Question 70

Multiple Choice

Which of the following expressions creates a JLabel that displays the text "Here is what I look like!" The JLabel should display Icon object face, and the JLabel's contents should be left aligned.


A) new JLabel("Here is what I look like!", face, SwingConstants.LEFT)
B) new JLabel("Here is what I look like!", face, SwingJustification.LEFT)
C) new JLabel("Here is what I look like!", SwingConstants.LEFT, face)
D) new JLabel("Here is what I look like!", SwingJustification.LEFT, face)

Correct Answer:

verifed

Verified

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

Related Questions