How to interact between GameCanvas and LCDUI elements on J2ME?
Posted
by Santiago
on Stack Overflow
See other posts from Stack Overflow
or by Santiago
Published on 2010-03-27T23:46:58Z
Indexed on
2010/03/27
23:53 UTC
Read the original article
Hit count: 242
The thing is I writing a J2ME program that fisrt of all show a "menu" using graphics interface (GameCanvas) and when the user select one item, I need to setCurrent that item (ex. a List), but when return from the List (it could be because the user push a Command "Menu" Item) I need to show the menu again.
The real problem when the menu show again, the keyPressed() listener of gamecanvas object stop working.
Basically I have:
A Midlet object with:
- GameCanvas object instance
- A List object instance
I don't understand how that works, I didn't find tutorial that share low and high graphics-level APIs on one Midlet.
© Stack Overflow or respective owner