SIVAKUMAR.J
SIVAKUMAR.J

Reputation: 4354

How should I handle the key events in J2ME?

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

Upvotes: 0

Views: 1048

Answers (3)

SIVAKUMAR.J
SIVAKUMAR.J

Reputation: 4354

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

Upvotes: 0

Oleh Prypin
Oleh Prypin

Reputation: 34116

As the documentation says.

Example of CustomItem usage

Upvotes: 0

Jigar Joshi
Jigar Joshi

Reputation: 240860

Here is the complete example

Upvotes: 1

Related Questions