7
·
8
·
9
·
10
·
11
·
12
·
13
·
14
·
15
·
16
·
17
·
18
·
19
SWT is an ideal toolkit for building Java applications that have a native look
and feel. There are cases where the native look and feel is not sufficient.
For example some applications require branding or a customized color scheme.
This can be achieved by modifying the colors, fonts and background images for
each widget using the APIs that SWT provides. It is best to drive the look and
feel of your application with centralized style markup, allowing you to modify
the look and feel and branding of your application without modifying Java source
code. CSS provides a ideal way to drive the look and feel and branding of
applications. In this presentation I will demonstrate how to use a free open
source CSS parser to parse CSS and apply the style properties to any SWT widget.
I will also cover some advanced topics such as styling custom widgets and
widgets that employ owner-draw rendering.
Matthew Hatem is a Software Engineer for IBM. He is a member of the Lotus Expeditor and Lotus Notes teams. Matthew Hatem is also an Eclipse Committer focusing in the area of Platform UI RCP.