I have tried several options but I only get error messages, I appreciate 
the support on how to insert the UITimer API.
My code:

 final DefaultListModel<String> lmArticulos = new DefaultListModel<>();
        AutoCompleteTextField atArticulo = new 
AutoCompleteTextField(lmArticulos) {

            protected boolean filter(String text) {

                UITimer timer = new UITimer(new Runnable() {
                    public void run() {

                timer.schedule(1000, true, fmArticulo);

                if (text.length() == 0) {
                    return false;

                ArrayList l = dT.leeInformacionRegistro(text, 
                if (l.isEmpty() || l.size() == 0) {
                    return false;
                Vector vArticulo = new Vector();
                for (int i = 0; i < l.size(); i++) {
                    Map<String, String> d = (Map<String, String>) l.get(i);
                    Articulo aRt = new Articulo();
                    aRt.setArticulo((String) d.get("art_articulo_id"));
                    aRt.setNombre((String) d.get("art_nombre"));
                    aRt.setTamano((String) d.get("art_tamano"));
                return true;

You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to