Autocomplete Textview IndexOutOfBoundsException

60 views
Skip to first unread message

ben.thacker...@gmail.com

unread,
Sep 18, 2013, 3:58:21 PM9/18/13
to codenameone...@googlegroups.com
When using the sample from the 08/28/2013 Codename One Blog and after adding a second AutoCompleteTextField an IndexOutOfBoundsException: Index: 0, Size: 0 exception error is caused by typing in either one of the controls.

Form test = new Form("Complete");
test.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
AutoCompleteTextField at = new AutoCompleteTextField(new String[]{"breakfast", "dinner", "lunch"});
test.addComponent(at);
AutoCompleteTextField at1 = new AutoCompleteTextField(new String[]{"cereal", "pizza", "salad", "steak"});
test.addComponent(at1);
test.show();

This control has a lot of potential. Thanks Chen!
Has anyone used more that one control on a form?

Chen Fishbein

unread,
Sep 18, 2013, 5:04:06 PM9/18/13
to codenameone...@googlegroups.com, ben.thacker...@gmail.com
Thanks, It's now fixed in the svn.
Reply all
Reply to author
Forward
0 new messages