Originally posted by Brian Cole:
Well if you look at how setSelectedValue() is implemented, you'll see that it looks up the index for the value you passed in and calls setSelectedIndex().
Having to do it yourself is more work for you, but I don't see how it would be any more dicey.
[ January 16, 2007: Message edited by: Brian Cole ]
Well I ended up using index values and seemed to get it working OK. The problem with that is that it now looks messy, plus requires me to re-code my application whenever new possible JList entries are added. I was hoping that the application wouldn't have to be modified when people added new entries to the database. Oh well. I appreciate the help everyone. Thanks a lot!
Below is the code I ended up with:
[ January 17, 2007: Message edited by: Scott Florez ]