JList (Java Platform SE 7 ) - Oracle Help Center
Constructs a JList that displays the elements in the specified array. This constructor creates a read-only model for the given array, and then delegates to the constructor that takes a ListModel. Attempts to pass a null value to this method results in und...