Skip to main content

Editor's Daily Blog for May 22, 2007

Posted by editor on May 21, 2007 at 10:58 PM PDT

Editor's Daily Blog for May 22, 2007

Java EE 5 achieves a high level of simplification over previous editions of the platform by using annotations for declarative programming. In our Feature Article, Using Annotations in the Java EE 5.0 Platform, Sangeetha S. and Subrahmanya S. V. look into this approach and its many uses.


In Java Today:

Augusto Sellhorn: JavaFX Clock

JSR 203 promises more new I/O APIs for Java, including several new I/O abstractions and a new I/O programming model. In the interview More New I/O APIs for Java, JSR 203 spec lead Alan Bateman explains how JSR 203's file API solves current shortcomings with java.io.File, the new Watchable interface, and asynchronous I/O programming. Bateman is an engineer in the SE Core Technologies team at Sun.

Neal Gafter: A Limitation of Super Type Tokens
I slightly modified the clock example Chris Oliver wrote, and added some artwork to it so it looks somewhat like one of the Google desktop gadgets I use. The gadget is very low res, so I decided to make the image files much bigger so users can resize it without it looking like a pixelated mess. I made the seconds hand jump every second instead of moving continuously, and like the gadget, it has a very quick animation that moves the hand back a bit to give it a "spring" feel...

Neal Gafter: A Limitation of Super Type Tokens
There was a coincidental adjacency between two slides in Josh Bloch's talk that made me think a bit more about the idea of Super Type Tokens. The last slide of his discussion of generics gave a complete implementation of the mind-expanding Typesafe Heterogenous Containers (THC) pattern using Super Type Tokens...


In today's Weblogs.

Adding Typed Support to the StAX API:
A discussion has been started in the stax_builders@yahoogroups.com mailing list about typed extensions to the StAX API. We hope this discussion will serve as the basis for a proposal to be incorporated in the next release of the API. Subscribe to the mailing list (it is moderated) if you are interested in influecing this next-gen API. —  Santiago Pericas-Geertsen

Selecting by first letter should show as many as possible that start with that letter
When pressing a letter in a drop down list it should show as many as possible that start with that letter. —  James Stauffer

jMaki publish/subscribe and debugging
Some jMaki widgets, such as Menu and Dynamic Container are pre-configured to publish and subscribe to the same topic, but what if you are writing custom publish and subscribe code and it's not working. —  Arun Gupta


In today's Forums:

Re: JPA: how to alter relation without fetching entire entities?
As you correctly noted, there is no JPA artifact that corresponds to the join table. Which means that you can execute such query only using a JDBC connection which has no affect on any internal state, PCtxt or 2-nd level cache (I don't think the spec supports executing an update or delete using native query, but even if it does, it doesn't parse such query to understand what it was doing). — mvatkina

Re: Multi-resolution or resolution independent Icon class
I don't think direct support of any particular vector format is necessary in the beginning... so long as the interfaces are there such that an Icon sub-class can render with any one of them. E.g. first we can use any custom painting code and within that make use of the existing SVG libraries for Java to draw the icon at the needed size. Much like what Kirill has started. In fact, we could use the SVG to Java2d source conversion tool that Kirill has done to just generate the bulk of a paint method for the icon. That could eliminate the need to parse SVG at runtime in many cases. — swpalmer

Re: What's up with Frame.dispose() and Frame.getFrames()
Frame.getFrames() returns list of ALL created frames. dispose() method does not destroy a toplevel (there is no way in Java to destroy an object), it just destroy all native resources associated with it. The frame will be removed from the list returned by getFrames() only when it will be gc-ed by JVM. — oleg_sukhodolsky


Current and upcoming Java
Events
:

Registered users can submit event listings for the href="http://www.java.net/events">java.net Events Page using our href="http://today.java.net/cs/user/create/e">events submission form.
All submissions go through an editorial review before being posted to the
site.


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 java.net it will be
archived along with other past issues in the href="http://today.java.net/today/archive/">java.net Archive.

Editor's Daily Blog for May 22, 2007