ComboBox selectionChanged called multiple times?

10 views
Skip to first unread message

Gareth Murfin

unread,
Jun 27, 2018, 10:14:11 AM6/27/18
to CodenameOne Discussions
If I select something from a combbox box then first call to selectionChanged is right but then there are additional automatic calls that select the wrong answer, why would this happen ?

ie, it gets called once when I just tap it to get options up, and then 3 times when i tap an option.

Shai Almog

unread,
Jun 28, 2018, 12:18:26 AM6/28/18
to CodenameOne Discussions
I suggest using the ActionListener. The selection listener is inherited from list and is meant for key navigation/animation.

Gareth Murfin

unread,
Aug 1, 2018, 7:03:50 PM8/1/18
to CodenameOne Discussions
perfect thank you Shai.
Reply all
Reply to author
Forward
0 new messages