Multiple Choice
To add the JList object addressList to a scroll pane named scrollPane, use the following:
A) JScrollPane scrollPane = new JScrollPane(addressList) ;
B) scrollPane.add(addressList) ;
C) addressList.add(scrollPane) ;
D) addressList.addScrollPane(scrollPane) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q46: If the letter chosen as the mnemonic
Q47: Both AWT classes and Swing classes ultimately
Q48: The getSelectedIndex method returns:<br>A) the index of
Q49: Images may be displayed in labels and:<br>A)
Q50: By default the scroll bars are always
Q52: Which of the following statements creates a
Q53: If addressList exists and has values stored
Q54: If the combo box addressBox contains a
Q55: When an item in the combo box
Q56: A menu within a menu is called