This article mainly elaborated the question is, in J2ME development the event transmission exactly is what mechanism. This paper mainly focuses on the analysis and research of the serial of canvas event transmission, and proves it through an example and concludes at the end.
By referencing Java Doc We can know that the event transmission in J2ME is serialized, so what is serialization? Java Doc says the following event method is invoked when a time method call completes. This ensures that the user's last input has been completed and the next event entry will be answered. First, let's look at what these methods are called event methods. The following methods are listed in MIDP:
Shownotify ()
Hidenotify ()
Keypressed ()
Keyrepeated ()
Keyreleased ()
Pointerpressed ()
Pointerdragged ()
Pointerreleased ()
Paint ()
The Commandlistener ' s Commandaction () method