Demonstrating the event transmission mechanism of J2ME through an example

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.