I prepared a very short test case (hereinafter) for my question.
When I click the button, I want to display a list of lines on a new screen.
After the user selects one item in the list, the previous screen should be displayed again, and the button label should be set to the selected line.

My 2 problems:
- From inside the menu, I donβt know how to put the displayed screen.
- How to transfer the selected item from one screen to another (if I do not want to enter a public variable / method on the first screen as a workaround)
Please provide the necessary changes for my src \ mypackage \ MyList.java :
package mypackage; import java.util.*; import net.rim.device.api.collection.*; import net.rim.device.api.collection.util.*; import net.rim.device.api.system.*; import net.rim.device.api.ui.*; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.ui.decor.*; import net.rim.device.api.util.*; import net.rim.device.internal.i18n.*; public class MyList extends UiApplication implements FieldChangeListener { MyScreen myScreen = new MyScreen(); public static void main(String args[]) { MyList app = new MyList(); app.enterEventDispatcher(); } public MyList() { MainScreen titleScreen = new MainScreen(); titleScreen.setTitle("Click the button:");
Thanks! Alex
source share