What would be best way of populating a JList?
Hi all,
I'm trying to put a list of users in a program so that one can be selected, I need to display the users name but also need to associate a user ID number with that field on that list that can't be seen.
The tutorials i've found only allow me to add the username and then when selected i can only retrieve index number that user is listed at. Would there be a way of storing the user ID as well in the list or should i use an array or something to store the IDs?
Thanks

