Designing the SimpleTest MIDlet

The following section describes the application class used in the example. A UML diagram is also included to show the other classes and the interface to the CommandListener.

SimpleTest

Application class:

  • SimpleTest - Creates a gauge that can be manipulated by adding numbers and a canvas that displays a message on a colored background.

Figure 34: SimpleTest example class diagram