Java Reference
In-Depth Information
eSWT UI MIDlet
eSWT
Core
Expanded
Mobile Extensions
Java ME
Native OS
Figure 3.5 Main components of eSWT
to mobile devices, such as commands or full-screen shells. The eSWT
widgets gallery 6 presents the range of eSWT widgets.
The eSWT APIs provide:
visually compelling and rich user interface components
flexible components layout using layout managers
fine-grained support for user interface events.
We show two examples for eSWT: the first is a very basic example
and the second demonstrates one of
the more powerful
features of
eSWT - embedding a browser in your application.
BasicUseofeSWT
Figure 3.6 shows a simple 'Hello World' application written using eSWT.
The basic building blocks of every eSWT MIDlet are org.eclipse.
swt.widgets.Display , Shell , and other widgets. Every eSWT appli-
cation requires a single display object and one or more shells. The
Figure 3.6 'Hello World' example using eSWT
6 www.eclipse.org/ercp/eswt/gallery/gallery.php
 
Search WWH ::




Custom Search