How to make a TextField autocomplete when user type something

Hello,

I have a function like email service, and i use Text field for usernames as recipients, now i have list of usernames from database, to a generic collection array, vector or any form,

Now i would like to somehow bind it with the textfield component so that when user types a letter, it should display a drop down list lf names with starting with that later, and should keep updating according to typed text.

Any ideas please

Thanks.

Use the Select component? See the ComboBox (Select is a combo box) example in Feature Browser.

Jup, use the ComboBox, and also do setNewItemsAllowed(true).

Best Regards,
Marc

Have a look at the full featured auto complete compoent

http://jtechnoprojects.blogspot.com/2011/08/style-definitions-table.html