0

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.

4

1 回答 1

0

您能否分享一个重现此问题的完整代码,我想不出任何可能阻止听众再次工作的原因。

我不建议在同一个应用程序中混合低级和高级 UI,它会破坏您的应用程序 UI 的一致性。

于 2010-09-17T22:48:43.430 回答