0

How should I handle the key events for CustomItem in J2ME?

gnat
  • 6,213
  • 108
  • 53
  • 73
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80

3 Answers3

1

Here is the complete example

jmj
  • 237,923
  • 42
  • 401
  • 438
0

As the documentation says.

Example of CustomItem usage

Community
  • 1
  • 1
Oleh Prypin
  • 33,184
  • 10
  • 89
  • 99
0

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

Lucifer
  • 29,392
  • 25
  • 90
  • 143
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80