swing - Java Swingx AutoCompleteDecorator does not work on JTextField -


i using java swingx library can implement auto complete feature on text box. list populate arraylist of elements have retrieved database. no errors not work when use following code:

autocompletedecorator.decorate(employeenametextfield, databaseconnection.getemployeelist(), false); 

when use following code jlist locks me out typing in textbox. not grey out won't let me type during runtime.

    jlist = new jlist(databaseconnection.getemployeelist().toarray());     autocompletedecorator.decorate(jlist, employeenametextfield); 

i tried decorate method takes 3 parameters, , use default object string converter suggested in post no avail. know doing wrong or have suggestions?

thanks,

zach


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -