0

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?

Ahmad
  • 437
  • 5
  • 20

1 Answers1

0

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.

Shai Almog
  • 51,749
  • 5
  • 35
  • 65
  • Thanks Shai. As the matter of fact I implement them by hard choding and all of my classes derive from "com.codenameone.ui.form" class. So I wanna implemenet navigation manually. Is there any solution to do it manually? – Ahmad Dec 08 '12 at 11:53
  • Next form is a feature of the GUI builder and has no code equivalent. What's the problem with just showing a form when you want to if you are in code already? – Shai Almog Dec 12 '12 at 08:29
  • I didn't use GUI builder for design so all of my forms are derived by Form not UIBuiler. Therefor I wanna Implement my own Next Form and I did. But I wanna some solution to benchmark of Next Form implementation. – Ahmad Dec 12 '12 at 12:40