Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(TCOs 1, 4, and 6) A JList can be populated from (Points : 3) an array. an Array

ID: 2081275 • Letter: #

Question

(TCOs 1, 4, and 6) A JList can be populated from (Points : 3)

an array.

an ArrayList.

a DefaultListModel.

All of the above

1. create the list in a JScrollPane.
2. use the method isScrollable with the value of true.
3. make sure to create the JList as big as needed on the GUI.
4. It is not possible because JList is a fixed size.

A employees.first()
B employees.get(1)
C employees.get(0)
D employees.get()

(TCOs 1, 4, and 6) To allow for any size list to be displayed in a JList, you should (Points : 3)

Explanation / Answer

1. Answer: An Array

Reason: it populates from an array or vector and also jlist enhances the scrolling straightly.

2.Answer : create the list in a scroll pane

3.Answer: c. employees.get(0)