Skip to main content

how to call lwuit form in statemachine class

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
gaurav17
Offline
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

Gaurav

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
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);