Navigation from game canvas to a form
How do you navigate from a game canvas to a form in Java ME when you 开发者_如何学编程require a user to insert his or her username and password?
Create the form and add some "OK" command to it.
To show the form, you have to do the following:
Display.getDisplay(this).setCurrent(yourForm);
When that OK command is used, you should do:
Display.getDisplay(this).setCurrent(yourCanvas);
and read the data from the form
精彩评论