Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
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.