Skip to main content

how to call lwuit form in statemachine class

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2011-06-28

Hi ,i am developing a project using lwuit1.4.0 and netbeans 6.9 i want to know how to get a reference or instance of lwuit form to access its components(radio buttons etc)in statemachine class.Plz help me


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-11-07

You aren't using 1.4 if you are using the GUI builder. You are in effect using the current trunk.

Which form do you want access to?

The current form is Display.getInstance().getCurrent();

A parent form of a specific component is cmp.getComponentForm();

You can create a new form instance of a form defined in the GUI builder from within the StateMachine class using createContainer(formName, fetchResourceFile())

Or just show it right away using showContainer(formName, null, null);