Multiple Choice
What will display 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 JFrame that encloses the window will resize itself to accommodate the SunnyFace image.
B) imagePanel will resize itself to accommodate the SunnyFace image.
C) The SunnyFace image will resize itself to fit on imageLabel.
D) The SunnyFace image will resize itself to fit on imagePanel.
Correct Answer:

Verified
Correct Answer:
Verified
Q34: What will the following code do when
Q35: When you write a change listener class
Q36: If a user enters a value in
Q37: A menu system may consist of each
Q38: What will be the results of executing
Q40: A _ object specifies a component's width
Q41: The default selection mode for a JList
Q42: What will be the results of executing
Q43: When a JList component is added to
Q44: You can create a label with an