Thursday, June 6, 2013

J2ME Tutorial, Part 2: User Interfaces with MIDP 2.0

J2ME Tutorial, Part 2: User Interfaces with MIDP 2.0

Vikram Goyal
This is part two in a series that explores J2ME with MIDP 2.0. "Part 1: Creating MIDlets" showed you how to acquire, install, and use the Wireless Toolkit for developing MIDlets. Part one also showed how to develop MIDlets without using the Toolkit, which is important in order to understand the behind-the-scenes activity involved in creating a MIDlet. Part one finished with an exploration of the lifecycle of a MIDlet, with a step-by-step guide through the events in the life of a MIDlet.
In this article, you will create the user interface (UI) elements
of a MIDlet. Since the interaction with a user is a paramount concern in any MIDlet, due to the size of the screens, it is important for you to understand the basics of this side of MIDlets. Any interaction with a user is done via a UI element. In fact, when you created the simplistic Date-Time MIDlet in part one, you used one such element called Alert to show an alert message on the screen. This message was actually shown on the screen by the help of another UI element called Display.
Let's start with a discussion of the overall architecture of the UI elements.

CLICK HERE

No comments:

Post a Comment