"I want to be able change the name of the item in the Jlist. but the
DefaultListModel
has no update method."
What makes you say that? Have you looked carefully at the docs ?
What do you think this method does?
public void setElementAt(E element, int index)
- Sets the component at the specified index of this list to be the specified element. The previous component at that position is discarded.
OR
public E set(int index, E element)
- Replaces the element at the specified position in this list with the specified element.