Display object, displayable object

Source: Internet
Author: User

Import javax. microedition. MIDlet. MIDlet;

The program first obtains the Display object of the device through the static display method getdisplay (), and then calls the obtained Display object.

For example:

Display display = display. getdisplay (this );

....

The User Interface object displayed on the display device is a displayable object. At the same time, the application can only have one displayable object. This displayable object is displayed on the display device, it is used to interact with the user. The referenced displayable object is called the current displayable object. You can pass the created GUI component to the Display object through the following setcurrent () Methods of display: Public void setcurrent (displayable D); Public void setcurrent (Alert alert, displayable D ); how to associate the Display object of a device with the displayable object of the graphic interface. Call the static getdisplay () method of the display object, create the form object, and call the setcurrent () method to bind the Display object to the display device. Display display = display. getdisplay (this); Form F = new form ("hi"); display. setcurrent (f );

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.