Skip to main content

JavaFX Mobile: See and learn at M3DD

Posted by terrencebarr on December 20, 2008 at 2:09 AM PST


As mentioned in my JavaFX launch post one of the key benefits of JavaFX is the unified development and deployment model across multiple screens - desktop, web, mobile, and (to come later) TV.

As of today (with the JavaFX 1.0 SDK) you can already build and run JavaFX Mobile applications on the mobile emulator provided with the SDK (see my post for quick instructions). The ability to run on real devices is coming soon - we're working hard on this internally at Sun to make it robust and well performing for general release.

In the meantime I'd like to show you some screen shots of one of the demos I've been doing over the last few weeks. It's an example of a social media sharing app (called CloudDVR) where you can manage, browse, and view local media as well as push and pull media to and from the 'Cloud' (a service on the network) to share it amongst your own devices as well as your friends.

The big picture is the JavaFX application running on a Windows XP desktop (it looks practically identical on a Mac). The wall of media (pics, music, video) is the local content and the bar at the bottom (with the little globe) is content on the cloud. You can pan around or view/play the media items or pull media from the local content onto the cloud or vice versa to perform uploads and downloads. It's a very attractive and easy-to-use application with a slick UI featuring layers, animations, and effects.


The small picture is the same JavaFX application running on an off-the-shelf Sony Ericsson G705 mid-range MSA-compliant (JSR 248) phone (it has been tested on several other devices as well). It features very much the same UI but adjusted to the screen size and user interface. It works quite well on the phone today already - I plan to demonstrate that in a video soon.

When I do this demo and show the application run consistently in parallel on a desktop as well as on a mid-range phone I typically get raised eyebrows and hear things like "Hmm - this is impressive. Where can I find out more?" .

Well, in January you can find out more - at Java Mobile, Media, and eMbedded Developer Days (M3DD). Juraj Svec, one of the architects of JavaFX Mobile, will be presenting "TS-3: Does your mobile speak JavaFX?". This is your opportunity to learn first-hand about what's coming - do not miss it.

The full conference agenda is here.



-- Terrence



Sorry for the slow reply.

The normal WTK emulator provides the standard Java ME platform and APIs to applications. For reasons of performance and platform integration it is optimal for the JavaFX Mobile runtime to be tightly integrated with the underlying Java ME platform. Therefore, the JavaFX Mobile emulator in the JavaFX SDK is based on the WTK and integrates an optimized JavaFX Mobile runtime. Devices shipping with the JavaFX Mobile runtime will have a device-specific Java ME platform with an integrated and optimized JavaFX Mobile runtime.

For a lengthy and detailed discussion on the topic please see:"

Hope this helps. Best,
-- Terrence

Hi Terrence, can you say something about the challenges running JavaFX Mobile on real devices? I am new to the subject, so I was a little surprised to see that the SDK is not using the normal WTK emulator. What is the main reason for that? Are you requiring other APIs than e.g. the JSRs that are implemented in recent devices such as Nokia N96? How would I get JavaFX mobile to run on such devices? I have read the FAQ answer in Jeet's blog and couldn't really make heads or tails of it. Cheers, André


Windows Mobile will definitely be supported - specific features are still in discussion but multimedia, touch screen, file system, and GPS are certainly high on the list (some of which are already covered by JSRs such as 234 and 179).

See also the following blog post:
Happy Holidays,
-- Terrence

Oppss.. please replace Sun Java Wireless Toolkit 2.5.2_01 with Java Platform Micro Edition Software Development Kit 3.0 ( It is v3 that has the J2ME Emulator for Windows Mobile.

Terrence, I understand that JavaFX is built on same MSA, JSR 248 specification and mobile hardware for application develop using Sun Java Wireless Toolkit 2.5.2_01. The latest toolkit includes J2ME emulator running on Windows Mobile. So will JavaFX support Windows Mobile too with emulator installable by user ? If so, can JavaFX take advantage of the multimedia (audio, video) and the pen navigation, touch screen, file system (file connection API), GPS system in the actual Windows Mobile device ?