Old Blogs

Old blogs

eSWT available for development

Features - October 12th, 2007 - Written by Aleksi Uotila

Java Developers can now start developing for a new eSWT UI toolkit. On actual devices eSWT will be available starting from S60 3rd Edition FP2 devices. eSWT API takes S60 Java Platform user interface capabilities to a completely new level.

The graphics capabilities of Java are already very rich but so far, the capability of the S60 Java platform UI toolkit (MIDP LCDUI) has not been on par with the S60 native UI frameworks. However, the S60 3rd Edition FP 2 changes this dramatically by introducing a completely new UI component toolkit to the Java Platform called eSWT. Standing for embedded Standard Widget Toolkit, eSWT is a significant facelift for Java UI frameworks.

eSWT is a cross platform toolkit developed in cooperation in Eclipse open source project called eRCP. What’s even more interesting is that eSWT shares most of the API with desktop SWT.

The eSWT API provides:
- A rich user interface component set
- Flexible and scalable layout system via layout managers
- Rich user interface events
- Access to native UI functionality on par with smartphone UI frameworks.

compose_haze.PNGcompose_haze.PNG
Screenshots from an example application using eSWT

Since eSWT on the S60 has been implemented using the normal S60 UI services, applications built using it will automatically have the standard look and feel of S60, including S60 themes and internationalization features.

The eSWT plugin for S60 Java SDK is available:
eSWT plug-in for S60 3rd Edition SDK for Symbian OS, Supporting Feature Pack 2, for MIDP, Beta.
You need to have the beta SDK which is available here:
Java SDK for 3rd Edition, FP 2, Beta.

The plugin implementation for the SDK is identical to the actual device implementation. It is just compiled to S60 emulator target (Intel). We are very interested to hear your comments about the new toolkit.

There’s different ways to contact us. We are part of the Eclipse eRCP project so you can post comments to the Eclipse eRCP newsgroup. On how to access see eRCP project pages for info. For bugs you may find a report to Eclipse Bugzilla is preferred. Or you can drop a comment also to this blog.

About the author Aleksi Uotila

Hello world! I'm Aleksi Uotila and I wrote my first hello world in Java back in 1996 when I was studying computer science in University of [..]

Comments(6)

  1. pillar wrote

    This is gonna be great. I for one am looking forward to being able to develop UI with eSWT. Two questions though:

    1) There seems to be a bug on 3rd FP2 sdk emulator that prevents it from working in Eclipse. That also makes it impossible to try this plugin. Is there a solution to that bug (jar comes a couple bytes off the size it should and doesn’t compile)? What has been a working configuration for those that have gotten it to work?

    2) Will there be a possibility to add eSWT support to 3rd FP1 phones, such as E90?

  2. Gorkem Ercan wrote

    There is a workaround for that bug. It was commented to our earlier post about the release of the beta SDK. I quote “There’s also a workaround: right-click on the project and select J2ME->”Create Package” before launching the MIDlet to emulator”.

  3. Aleksi Uotila wrote

    To answer pillar’s question 2) Will there be a possibility to add eSWT support to 3rd FP1 phones, such as E90?

    The S60 Java Platform prior to 3rd ED FP2 devices has non-modular VM that does not allow eSWT implementation to be post installed. There’s no way to bring new Java API implementations to that VM or update the existing ones. Technically the whole VM + class libraries would need to be replaced in these devices but we are currently not planning to do this for eSWT.

    The Nokia eRCP for S60 is actually doing like this. There’s whole eRCP sw-stack (VM+CDC+eRCP) available for Nokia E90 for selected partners for trials from Nokia. This has eSWT implementation also.

  4. pillar wrote

    The workaround is not working for me. There are many others still not able to use the sdk, so please someone tell the nokia sdk team to get the final version out fast (and have this solved in it!)

  5. BlackDog wrote

    That is some cool stuff. Just wish that would support s60 3rd. Oh well have to bury my symbian programming.

  6. Cool Dude wrote

    Great stuff. Java application developed in eSWT and deployed on s60, Can we theme those application. Can a user change the color , can a user customize it .

Visit new S60 Blogs

You are browsing old S60 blogs. Please note that these sections are not updated any more. Go to the new S60 Blogs to find out the latest news!

New blog categories:

What is S60?