Multiple Choice
What will be the result when the following code is executed?
ImagePanel = new JPanel() ;
ImageLabel = new JLabel() ;
ImagePanel.Add(imageLabel) ;
ImageIcon sunnyFaceImage = new ImageIcon("SunnyFace.gif") ; imageLabel.setIcon(sunnyFaceImage) ;
Pack() ;
A) The image will resize itself to fit the label.
B) The image will resize itself to fit the panel.
C) The panel will resize itself to accommodate the image.
D) The JFrame that encloses the window will resize itself to accommodate the image.
Correct Answer:

Verified
Correct Answer:
Verified
Q4: The default selection mode for a JList
Q5: What will be the result when the
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
Q10: A mnemonic is<br>A) a single key on
Q11: What will be displayed when the following
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