Search |
||
I Will Follow You Into The DarkPosted by editor on February 28, 2008 at 7:42 AM PST
AWT and Swing windows get opacity options other than 1.0 and 0.0
Befitting the title, Josh Marinacci had a very hacky approach to providing transparent/shaped windows in our book Swing Hacks. Basically, what he did was to use the AWT As you might imagine, this was more a cute trick than a practical approach. We did say it was a "hacks" book after all. But now, we're getting the real deal, as reported in a blog by Kirill Grouchnikov, Translucent and shaped windows in core Java. His blog shows off some screenshots of the various effects supported by build 12 of JDK 6.0u10, and links to his personal blog to describe the code required to achieve these effects. So, you might be asking, is this just eye-candy, something that lets developers get cute with their GUIs? Well, the test of that will be in how it's put to use, but it's worth noting that these techniques will allow AWT and Swing apps to provide the "HUD Window" that has become all the rage in Mac OS X apps. Like this:
Blogger Austin Heller describes them as "those semi-transparent black windows you see occasionally in applications," and goes on to say:
They must be pretty intuitive, because while I keep bringing up the opaque DVD controls on the Mac with the ESC key, my five year old son has figured out that just swooping the mouse over the movie brings up a translucent, self-dismissing HUD with basic playback controls (like the QuickTime Player image above), and mousing to the top of the screen brings up a HUD of illustrated chapter stops, something completely unavailable to my old-fashioned, opaque GUI widget. I'm so 2002. Translucent and shaped windows used to be the vain playground of WinAmp skins, but it turns out they can be quite useful. And now they're available to AWT and Swing. This should be fun... Also in today's Weblogs, Alex Winston expresses concerns over Closure Syntax in the various Java 7 closure proposals. "I appreciate the effort put forth in both the BGGA and FCM proposals to add closures to the Java language but I have a concern regarding the apparent disregard for a syntax that is within the spirit of the language." Finally, Mark A. Carlson points out a new project in Introducing Project Royal Jelly - Java for Fixed Content. "Project Royal Jelly is a new project to add interfaces which allow Java to be used in the Data Path of storage devices. One of the standards we will be leveraging is the storage industry standard XAM (http://snia.org/xam) interface for fixed content. An initial code drop has been made at the project web site." In Java Today, Google has posted details of this year's Summer of Code program. The FSoC is a program that offers student developers stipends to write code for various open source projects. Last year, the program worked with 130 organizations to fund about 900 projects. Several java.net projects have participated in previous years, including JXTA, SIP Communicator, and Project Looking Glass. The program will begin accepting applications from mentoring organizations on Monday, March 3, 2008, and student applications on Monday, March 24th; more details are available in a program FAQ. From The Aquarium: "Afga, ICW and Sun have launched the Open eHealth initiative to leverage Open Source in the Health industry. Open eHealth's goal is to create a community-driven software development platform to speed up the digitization of the healthcare industry, with emphasis on delivering interoperable, standards-based solutions. The service components will extend existing open source projects such as OpenESB, Glassfish, OpenSSO and Mural. More details in the Press Release and at the Open eHealth WebSite." The SDN has published a new article for beginners, Easy Web Site Creation in the NetBeans IDE, in which Dana Nourie shows "how incredibly easy it is to create a web site in NetBeans through drag-and-drop without writing code, and how you can gradually learn Java programming by adding to your JavaServer Pages (JSP), and creating other features or programs that may be added to your site."
In today's Forums,
Finally, Current and upcoming Java Events :
Registered users can submit event listings for the java.net Events Page using our 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 java.net Archive. AWT and Swing windows get opacity options other than 1.0 and 0.0 »
Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|