This illustration provides a code fragment of the ChoiceBoxSample application.

The greetings and cb variables contain arrays of text elements in the UTF encoding. The greetings array includes the word "Hello" in the following five languages: English, Spanish, Russian, Chinese, and Japanese. The same languages are listed in the cb variable.

For more details of the ChoiceBoxSample application, see to the source file linked from this tutorial.