True/False
In the following code the setPreferredSize method sets the size of the text, "Have a good day".
label = new Jlabel("Have a good day", SwingConstants.CENTER);
label.setPreferredSize(new Dimension(400,200));
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: The Dimension class is part of the:<br>A)
Q2: Which of the following assigns ALT+C as
Q3: A mnemonic is:<br>A) A single key on
Q4: To determine which item in a list
Q6: This type of combo box combines a
Q7: What will happen when the following code
Q8: If nameList is a JList component, use
Q9: The default directory for the JFileChooser constructor
Q10: What will happen when the following statement
Q11: If the argument passed to the showOpenDialog