name is not an Array or Objects nor Array of Strings....
You may review the documentation about JList if you have time.
And, to be able to dynamically changing the contents of that JList,
You may stop using arrays, instead use DefaultListModel...
that model will do the rest....
As the content of that model changes, the content of the JList also changes....