This week's giveaways are in the MongoDB and Jobs Discussion forums. We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line! See this thread and this one for details.
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
Joined: Sep 03, 2001
What about using the JList's method ? Tom [This message has been edited by Thomas Suer (edited November 09, 2001).]
Joined: Jan 18, 2001
That was it!
Joined: Dec 06, 2000
Hey I faced a similar problem with this setSelectedValue() method when I wanted to select multiple values in a JList automatically, it still selected only once, is there a way ? Regards, Vinod