Hi, I have a JList, I am looking for a method like setSelectedValues(Object[]), but api does not have this method, can some one help me if there is any work around for this. Cheers Durga
Durga Penmatsa
Greenhorn
Joined: Aug 14, 2001
Posts: 23
posted
0
Hi All, I had to right my own code. I tried going thru entire list, test for matching objects and used setSelectedValue() for matching object, but that did not work. I had to find out indices of matching objects and use setSelectedIndices(int[]). Any doubts Durga
Originally posted by Durga Penmatsa: Hi, I have a JList, I am looking for a method like setSelectedValues(Object[]), but api does not have this method, can some one help me if there is any work around for this. Cheers Durga