On mySimon: Backpacker Magazine Award Winners
BNET Business Network:
BNET
TechRepublic
ZDNet

August 15th, 2008

LWUIT vs. JavaFX Mobile

Posted by Ed Burnette @ 6:26 am

Categories: Community, General, Java, Programming, Sun

Tags: Developer, Phone, Mobile, LWUIT, JavaFX Mobile, Programming Languages, Java, Telecom & Utilities, Software Development, Software/Web Development

The light-weight user interface toolkit for Java ME (LWUIT) has been released as open source under the GPLv2+classpath exception license. LWUIT is a library that helps content developers in creating rich and consistent Java ME applications. LWUIT supports visual components, theming, transitions, animation, and more. Sounds similar to JavaFX doesn’t it? I asked Dave Hofert, group manager, Java platform marketing at Sun, to explain the differences.

According to Hofert, while both LWUIT and JavaFX enable creating a better and more compelling user interface for mobile and other devices, there are really two target audiences / handset profiles:

LWUIT is aimed at current Java MIDP and Swing developers who are looking to enhance the interfaces of new or existing Java ME applications on MIDP 2.0 phones. LWUIT is a library which offers pre-made graphical functions and features that developers can quickly and easily assemble into a compelling interface.  LWUIT allows developers to worry less about the building blocks and instead focus on a consistent and richer interface across phones.  Therefore LWUIT is something that existing Java developers can incorporate and make calls to out of their existing Java code.JavaFX Mobile is targeted at designers and scripters who are looking to create very rich, very immersive experiences across the screens of their life (phone, desktop, TV, etc.). The level of interactivity and animation and control over the user’s screen is much higher than that enabled by LWUIT.  JavaFX Mobile can also run on MSA-enabled devices which comprise the higher end of the mobile space - smart phones and high end feature phones.

The programming and UI design of the two systems is completely different as well.

JavaFX uses a declarative statically typed scripting language that allows people to build out interfaces by describing the functionality that they want to see, instead of building it from the ground up.  This lets them think creatively and be creative. JavaFX includes scalable fonts, 2D graphics, rich animations, integrated audio and video, and you can build apps that will run across all the screens of your life.

In addition, with JavaFX, you can use design tools like Photoshop and Illustrator to build out graphical elements and even entire interfaces that you can directly build into and manipulate within JavaFX.  This lets the designers and developers work much more closely and efficiently together.

So the bottom line is that if you’re sprucing up an existing Java ME program, choose LWUIT. For new mobile and desktop apps, or if you’re working in a multi-disciplinary team with artists and programmers consider JavaFX.

Of course neither will work (yet) on iPhones, Android phones, or standard Windows Mobile phones. It’s unfortunate developers have to deal with all these different systems. If Apple open sourced the iPhone platform and allowed any handset manufacturer and any carrier to use it, they would be poised to completely take over the mid to high end mobile phone market within 12-18 months. But Apple doesn’t work that way. Google does, but it’s taking them so long to get Android out the door that they’ll be playing catch-up for a while. It looks like the dream of “write once, run anywhere” will remain unfulfilled for the forseable future.

Ed BurnetteEd Burnette is a professional developer and author of several articles and books about computing including Hello, Android: Introducing Google's Mobile Development Platform, 2nd Edition. For disclosure of Ed's industry affiliations, click here or to view his full profile click here.

Email Ed Burnette

Subscribe to Dev Connection via Email alerts or RSS.

  • Talkback
  • Most Recent of 5 Talkback(s)
FQ posted on LWUIT vs. JavaFX Mobile
Ed,

I just posted an FAQ on the topic:

http://weblogs.java.net/blog/terrencebarr/archive/2008/08/comparing_lwuit.html

Best,

-- Terrence... (Read the rest)
Posted by: terrencebarr Posted on: 08/19/08 You are currently: a Guest | | Terms of Use
J2ME on windows mobile  mathiastck | 08/15/08
...  mathiastck | 08/15/08
RE: LWUIT vs. JavaFX Mobile  BoyBawang | 08/17/08
A few corrections: RE: LWUIT vs. JavaFX Mobile  terrencebarr | 08/18/08
FQ posted on LWUIT vs. JavaFX Mobile  terrencebarr | 08/19/08

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement

Recent Entries

Archives

Favorite Links

ZDNet Blogs

White Papers, Webcasts, and Downloads

  • Smart Tech Expert advice on innovations in healthcare and the green technologies that make it happen. Find out more
  • Smart Business Discussion and advice on management issues that revolve around making your world smarter and more useful. More Smart Advice
  • Smart People The best and worst moves in the management and strategy trenches. Learn More