What I am trying to do mimic an HTML Select tag. I want to display text as an option but when selected, I would use its value.
For example, I would have a list of country names. However, when a user selects Japan, I want to get the Locale Code for that country. So the user sees that they selected Japan, but my code will get "ja_JP" or something.
I am trying to avoid storing the Country Name and Locale Code in a HashMap or something.