posted 23 years ago
I've got a JList that is part of JScrollPane.
I do a search in a database for a value. I then match that value with the value in the JList. I then setSelected on the item in the JList. All this is OK.
However, my JList still displays the first item in the list, not my item. I know the index of the item I want to display. This should be dead-bang easy, but for some reason, I can't think of the solution.
Thanks,
Pres