Multiple Choice
Which of the following statements adds the JList object referenced by namesList to the JScrollPane object referenced by namesListScrollPane?
A) JScrollPane namesListScrollPane = new JScrollPane(namesList) ;
B) namesList.addScrollPane(namesListScrollPane) ;
C) namesList.add(namesListScrollPane) ;
D) namesListScrollPane.add(namesList) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q13: When using a slider, by default, tick
Q28: After you create a menu item, you
Q29: If you assign the same mnemonic to
Q30: When an item in a Jlist object
Q31: What is the default directory for the
Q32: Which of the following file types is
Q34: A _ is a collection of commands
Q35: What does the following statement do?<br>JTextArea textField
Q36: When you create an instance of the
Q38: The JList and JTextArea components do not