This example MIDlet shows you how to create a UI with the eSWT API and use the common eSWT features on a Symbian device. The MIDlet covers the following features:
Creating a top-level eSWT hierarchy
Creating an eSWT event loop
Creating shells, displays, and dialogs
Handling multithreading
Handling events
Using the widgets contained in the org.eclipse.swt.widgets
and org.eclipse.ercp.swt.mobile
packages
Organizing widgets using layouts
Adding commands
Using low-level graphics
The MIDlet implements a simple movie ticket booking application.
Figure: MovieBooking MIDlet
Note: This tutorial focuses on the eSWT API parts of the MIDlet. The business logic is only reviewed shortly.
You need the following to develop and test this MIDlet:
S60 3rd Edition FP2 SDK or newer
S60 3rd Edition FP2 device or newer
Note: The MIDlet can jam or appear to run very slowly on Symbian Belle devices. For more information, see article KIJ001678 - Drawing with eSWT API is slow on Symbian Belle in the Nokia Developer Wiki.
For instructions on how to set up the Java ME development environment, see section Setting up the development environment.
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.