I tried a simple project with 2 forms: Login and MainMenu
I made GUI with Codename One design:

I checked in StateMachineBase class, I think it for LoginForm (the first form)

And now, I want to click on Login button it will open MainMenuForm, but I don't know how to do. Can you help me, maybe some tutorial or simple sample.