In the main method create a new instance of the application and make the currently running thread the application's event dispatch thread.
<source lang="java">
import net.rim.device.api.ui.UiApplication; import net.rim.device.api.ui.component.ButtonField; public class MyApp extends UiApplication { private MyScreen _screen; private ButtonField _nextScreenButton; public static void main(String[] args) { MyApp theApp = new MyApp(); theApp.enterEventDispatcher(); }
</source>