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
Post a Comment