(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()
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)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.