Example: Drawing with Paint

This example MIDlet shows you how to create a simple touch-based paint application. The MIDlet allows the user to draw on the screen, change the brush size and color, clear the screen, and save the drawn image in the BMP file format to the default photo folder.

Figure: Paint MIDlet

Prerequisites

You need the following to develop and test this MIDlet:

  • Nokia IDE for Java ME (Eclipse) or NetBeans with Java ME support

  • Nokia SDK 1.0 for Java

    Note: The Series 40 full touch version of the MIDlet requires Nokia SDK 2.0 for Java or newer.

  • Series 40 6th Edition Feature Pack 1 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 information about implementing the MIDlet

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