Search code examples
navigationlwuitcodenameone

luwit form navigation


Suppose that I have 3 form "Main", "Setting", "Language". I start with "Main" and then I open "Setting" from "Main" and after that open "Language" from "Setting" ("Main" -> "Setting" -> "Language").

How can I implement navigation between these forms?

codenameone and lwuit do it by set nextform property but I want to implement it manually but I don't know how?


Solution

  • In the Codename One state machine just invoke showForm("FormName", null); to show any form you want whenever you want. Just make sure to call it from the EDT.