开发者

How should I handle the key events in J2ME?

开发者 https://www.devze.com 2023-01-22 07:19 出处:网络
How should I handle the key events for CustomIt开发者_JAVA技巧em in J2ME?Here is the complete exampleAs the documentation says.

How should I handle the key events for CustomIt开发者_JAVA技巧em in J2ME?


Here is the complete example


As the documentation says.

Example of CustomItem usage


I got the solution. We should override the method "protected void keyPressed(int key)" of CustomItem in the derived class of CustomItem.

0

精彩评论

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