No New APIs?
Java 6u10 is not called Java 7. Because of this name — and the rules associated with JDK update releases — no new APIs can be added. But is this really the full story? For example, with 6u10, you can create translucent and shaped windows.
However to really leverage this feature, you need to use the
AWTUtilities class. What’s that?
The translucent and shaped windows feature is available through the new
com.sun.awt.AWTUtilities class. Note that this class is not part of an officially supported API.
By back-dooring stuff into “com.sun.*” packages, we can still call this an “update release”. But seriously, folks. This is just an API semantics game. It reminds me of a famous Clinton quote:
That depends on what your definition of “is” is
So I guess this depends on what your definition of “API” is. Is Sun producing demo apps and publishing articles describing how to use this new class? Yes. Are they calling it an “API”? Sort of, but within the confines of what an update release allows. Does this mean I should use it?
Translucent and shaped windows are huge new features I have wanted for years. This is exactly the sort of thing rich client applications will use, but I also want my Swing apps to run on all platforms.
Will Java 6u10 be ported to OSX, and when? Will the
com.sun.awt.AWTUtilities class work just through a simple JAR file addition to the boot classpath, or does this require OS-specific native code?