Hello,
I need to deselect any selection(s) made on a JList, but through code.
Doing this with :
ListModel model = new MyListModel();
JList list = new JList(model);
...
list.setSelectedIndex(-1);
doesn't work.
Any one can help
Many thanks
Daniel Santos
John McGrath - 31 Mar 2005 03:27 GMT
> list.setSelectedIndex(-1);
>
> doesn't work.
list.clearSelection();

Signature
Regards,
John McGrath