Skip to main content

It's Not Peculiar

Posted by editor on August 14, 2008 at 6:41 AM PDT

Swing saves ME from bad GUIs?

One of the surprises of JavaOne was the Lightweight UI Toolkit (LWUIT) project and the attractive Java ME GUIs that were demoed with it. Nobody's promising to turn your old free-with-contract phone into an iPhone, but LWUIT does offer not only a much improved appearance, but also a more consistent one. By using a Swing-like approach to painting everything with Java -- rather than depending on native peers that vary radically by device -- LWUIT gives developers a much better ability to get their apps to have a similar appearance and behavior on different devices.

Biswajit Sarkar offers a high-level view of LWUIT's design and features in today's Feature Article, An Introduction to the Lightweight User Interface Toolkit (LWUIT):

LWUIT offers a wide range of widgets
for building UIs. While some of these widgets are also available
under lcdui, there are a number of new ones that enable application developers to design UIs that
can come very close to their desktop counterparts in terms of
visual sophistication. Even the components that are also offered by
lcdui have been functionally enhanced. And LWUIT is not just about
new components, either. The API supports a whole range of new
functionalities, too -- theming, transitions, and more.

LWUIT's a big topic and for this introduction, Biswajit takes a high-level overview of the project and its pieces. Let us know if you're interested in digging deeper into the technical parts like the various components, transitions, theming, etc.

In Java Today, NetBeans IDE 6.5 Beta has been released. NetBeans 6.5 introduces several new features, including a robust IDE for PHP, JavaScript debugging for Firefox and IE, and support for Groovy and Grails. This release also includes a number of enhancements for Java, Ruby and Rails, and C/C++ development. Java feature highlights include: built-in support for Hibernate, Eclipse project import, and compile on save. NetBeans IDE 6.5 Beta also contains 6.1 features including a powerful and intuitive JavaScript Editor, support for Spring Framework, ClearCase (via Update Center), and RESTful Web Services. Download the beta, learn more, or check out the documentation.

The GlassFish Community Acceptance Testing (FishCAT) program has gotten underway. " The main goal of this program is to provide opportunity to community to significantly influence the quality of the GlassFish as well as to get early feedback on stability and usability through community involvement in GlassFish Beta testing cycle. We will start our first FishCAT program for GlassFish v3 Prelude from August to September 2008. It will last about 4 weeks." More details are available in Arun Gupta's blog.

Binod uses his blog to announce the release of SailFin V1 Alpha, a JSR 289 (SIP Servlet 1.1) implementation atop GlassFish. Linking to the download, he notes, "though a major chunk of JSR 289 is already implemented, it is still not yet compliant with the final release of the specification."

In today's Weblogs, James Gosling reports he's having Fun at SIGGRAPH. "I'm spending this week in LA at SIGGRAPH. It's really great to be at a conference where I can concentrate on learning. Lots of interesting papers and folks doing cool experimental stuff."

Tim Boudreau wonders aloud about
Semi-checked exceptions? "My friend Jon Locke, creator of Wicket, told me recently how he feels checked/unchecked exceptions should have been implemented in Java. It's an interesting idea to kick around."

Finally, in Developing MEP Connectors - Part II, Santiago Pericas-Geertsen writes, "in the first installment of these series we've looked at the architecture of a MEP connector and briefly discuss the main abstractions in the ECBO (Enterprise Connector Business Object) API: BusinessObject and BusinessObject provider. In this second part, we'll discuss an actual implementation of the BusinessObject abstraction used to create a connector that synchronizes data against a relational database."

In today's Forums, joergjahnke wants to find out about the device his app is running on, in the thread
Re: Touchscreen, how to get started. "I hope it's OK to use this old thread for my question as it's related to the topic: How can my LWUIT application detect whether the device it's running on has a touchscreen or not? Using normal LCDUI classes, the Canvas class offers methods like hasPointerEvents, but I can't find a similar method in the LWUIT framework. Does such a method exist or is it at least planned to be added?"

danila explains CLDC threading implications in Re: javacall and MT safe. "CLDC VM uses green threads, so all Java threads are created and managed by the VM within a single OS thread. So the VM calls PCSL routines from the same thread. An exception to this rule is hybrid thread coding style that allows to use additional native OS threads to handle blocking calls."

Finally, Kenneth Clark asks about Shared XSD for WSDL. "I am sitting with a situation where by I have a stack of web services. Now to make them more manageable I can divide them into smaller service sets. The only problem is that they share the same objects. Now here is where the problem comes in, the front end defines the shared objects in different namespaces which means there are duplicate objects. So is there any way to have the WSDL share the Entity definitions? Do I have to manually write the WSDL in order to achieve this and use the @WebService(wsdlLocation)?"

Current and upcoming Java

Registered users can submit event listings for the href=""> Events Page using our href="">events submission form.
All submissions go through an editorial review before being posted to the

Archives and Subscriptions: This blog is delivered weekdays as
the Java
Today RSS feed
. Also, once this page is no longer featured as the
front page of it will be
archived along with other past issues in the href=""> Archive.

Swing saves ME from bad GUIs?


And LWUIT was open sourced today: See
-- Terrence