Display another dialog when closing one

19 views
Skip to first unread message

Gareth Murfin

unread,
May 25, 2016, 7:52:28 AM5/25/16
to CodenameOne Discussions
I have a dialog with an OK button, when I hit that I dispose of the dialog, and show the next dialog. Strangely the same dialog comes up, I have tried uitimers etc and everything I can think of but I cannot get around this. How do I make the correct dialog come up ?

Gareth Murfin

unread,
May 25, 2016, 8:37:34 AM5/25/16
to CodenameOne Discussions
Going crazy here, for some reason any time I try to show a new dialog the old one opens, even when I put it on a different screen and thread etc, whats happening to cause this, its weird cause its never happened before.

Shai Almog

unread,
May 26, 2016, 12:21:13 AM5/26/16
to CodenameOne Discussions
Don't open a dialog from a thread that isn't the EDT.
If you show the next dialog before disposing the previous dialog then the previous form for the next dialog is the first dialog... So when you dispose the next dialog it "goes back" to the previous form...
Reply all
Reply to author
Forward
0 new messages