javax.microedition.lcdui.Canvas

The canvas acts as the base class for primary display interfaces that require more customized draw handling. It is not recommended to use a lookup table between keycodes and actions at initialization time. The reason for this is that it is possible for the device to enter different modes or be associated with different {@link Display}s which have different action mappings.