I used a TreeSet model to get a sorted JList but it isn't sorted.

Printable View