Best practice for add US State selection combo box

I am new to Vaadin and UI development in general.

I am trting to figure out the best practice for adding a state selection dropdown to a form view. I have created a HashMap of the state names and I would like to populate that list into a combobox or list select.

I’m not sure if I am on the right track:

Select select = new Select(“State”, States.getAllStateNames());

would it be better to use a combobox?

Thanks for any help.

Clint

Yes it is better with a combobox you can handle it better as select and you can do something more with UI on the box…

and for selection in the Box i use enums and not plain text so you can add more options to the selected country.