Example: Creating a simple test MIDlet

This simple example MIDlet shows you how to use a high-level LCDUI class ( Gauge ) and implement a low-level LCDUI class ( Canvas ). This MIDlet also shows you how to use Commands to control a MIDlet.

Figure: SimpleTest MIDlet

Prerequisites

You need the following to develop and test this MIDlet:

  • Series 40 2nd Edition SDK or newer

  • Series 40 2nd Edition device or newer

For instructions on how to get started with Java ME, see section Getting started.

Development

For more information about the MIDlet, see:

  • Design for information about the design and functionality of the MIDlet.

  • Implementation for instructions on how to implement the MIDlet.

You can download the project files for the MIDlet from the download page.