Touch UI - Paint

Description

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

For a tutorial that shows you how to create this MIDlet, see section Example: Drawing with Paint.

Compatibility

This MIDlet is provided in two versions:

  • The regular version is compatible with Series 40 6th Edition FP1 and Java Runtime 2.1 for Symbian devices and newer.

  • The Series 40 full touch version is compatible with Series 40 6th Edition FP1 and Java Runtime 2.1 for Symbian devices and newer, but the Series 40 full touch features are only available on Series 40 full touch devices with Java Runtime 2.0.0 for Series 40 or newer.

This MIDlet has been tested on the following device:

  • Nokia Asha 305 (Java Runtime 2.0.0 for Series 40)

  • Nokia Asha 306 (Java Runtime 2.0.0 for Series 40)

  • Nokia Asha 311 (Java Runtime 2.0.0 for Series 40)

  • Nokia N8-00 (Symbian Anna with Java Runtime 2.2 for Symbian)

  • Nokia X3-02 (Series 40 6th Edition FP1)

  • Nokia X6-00 (S60 5th Edition with Java Runtime 2.1 for S60)

MIDlet project

The MIDlet project files are packaged as a zip file. The zip file includes two projects: the regular version and the Series 40 full touch version. To download the zip file, click the following link:

Download Paint

Table: MIDlet details (regular version)

MIDlet version

1.2.0

Creation date

28 June 2012

IDE

Eclipse and NetBeans

SDK

Nokia SDK 1.0 for Java

Table: MIDlet details (Series 40 full touch version)

MIDlet version

1.2.0

Creation date

10 May 2012

IDE

Eclipse and NetBeans

SDK

Nokia SDK 2.0 for Java

For earlier versions of the MIDlet, see the Nokia Developer Project.

MIDlet classes

The MIDlet consists of the following packages and classes (click to view the full source code):

Note: The source code is from the Series 40 full touch version of the MIDlet. To view the source code of the regular version, see the source code files in the zip file.