开发者

Navigation from game canvas to a form

开发者 https://www.devze.com 2023-01-06 22:38 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消