Example: Booking movie tickets

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.

Prerequisites

You need the following to develop and test this MIDlet:

For instructions on how to set up the Java ME development environment, see section Setting up the development environment.

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.