MIDP API despite maintenance of a limited frame, it still provides a complete collection of UI elements. The following is some of the most important UI elements:
Alert is used to display information about exceptions or errors on the screen. Choice is used to achieve selection from a set of options. Choicegroup provides a set of related options. FORM is a container of other UI elements. List provides a list of options. StringItem acts as a DISPLAY-ONLY string. Textbox is a screen display that allows users to enter and edit text. TextField allows users to enter and edit text. Multiple TextField can be placed in an Form. DateField is an editable component for representing date and time information. Datefield can be placed in Form. Ticker can scroll-on the text for text.
A sample application: One of the famous features of the phone calendar J2ME is its date processing in the restricted environment. The Datefield UI element provided by J2ME is an editable component, which is used to represent calendar information (ie, the date and time). In this section, we will use the DateField and Date functions to develop a J2ME application, which is used to display a scroll calendar on the mobile phone UI.