This tutorial shows you how to create a GUI for an application with the eSWT API and explore some common eSWT features. Alternatively, you can download the example files and run them immediately with your S60 3.2 Java SDK.
Note: This tutorial only covers code that illustrates the usage of the eSWT API. Code related to the application logic of the example are not extensively documented.
This tutorial shows you how to:
Create a top-level hierarchy
Create an eSWT event loop
Create Shell
s, Display
s,
and Dialog
s
Handle multithreading in eSWT
Handle events
Use some of the widgets contained in the eSWT Core and eSWT Mobile Extensions packages
Organize widgets using layout
Add commands
Use low-level graphics
The example application, MovieBooking
, serves as
the front-end of a movie theatre ticket booking system. Since the application
is only intended to serve as an example, some of the code has been implemented
to mimic real deployment environments. For example, while the back-end would
typically be located on a remote server and connections would be formed using
Web Services, here the example uses a simulated local database.
The example application allows you to:
Contact the database and retrieve a list of available movies.
Follow the progress of the connection through a splash screen displayed at start-up.
See the list of movies displayed on screen.
Retrieve a short description of each movie.
Request to book seats for a movie.
Use a form to enter required information and select a seat.
Receive a confirmation of the booking.
Book multiple movies.
Close the application at any time.