Why won't my JList update?

My JList is first dimensioned to an array with 100 elements in it but then in a function i set it to null and then I set it to a different array with a smaller amount of elements. Then i call repaint() to refresh the pane but it still doesn't change anything. The JList on my pane still shows the items in the old array. How do i fix this?

[347 byte] By [Lateralus01a] at [2007-11-26 22:29:19]
# 1
you need to reset the listModelsearch the swing forum for listModel DefaultListModeland you'll find plenty of working examples
Michael_Dunna at 2007-7-10 11:33:13 > top of Java-index,Java Essentials,New To Java...