Once a subject of heated discussions, the native vs. cross-platform skinning has not been mentioned for quite some time in Swing blogosphere. While this post by no means aims to revive the dead ghosts, i saw something quite interesting in the PDC session on the Windows 7 Explorer. It looks like (at least in the current builds) Microsoft has decided to enforce better consistency across the UI layer of its flagship desktop products, including Office and Media Player. This specific issue has been brought as one of the major arguments against using a native look-and-feel (because the lack of consistency effectively meant that there is no native look-and-feel).
The following three screenshots show (what i presume to be) the next version of Office running on Windows 7. These were taken from the video stream and the quality is not the best, but the overall trend is still quite noticeable. The landmark Office ribbon that was skinnable as silver / blue / black in Office 2007 is now consistent with the platform look-and-feel (read more about the scenic ribbon in the PowerPoint slides of this PDC session). I’m not sure whether the presenter meant to show the new look of Office, or even if this is the final look. However, the screenshots clearly show that the ribbon UI is now much more consistent with the the rest of OS, including the colors, gradients, the glass chrome on the title pane and other UI bits (click to see full size view):



The same goes for the Windows Media Player. The screenshot below (click for full size view) shows a somewhat partial UI in the top bar (no icons on the twin round buttons), but the heavy glossy black / dark blue chrome found in the current Media Player UI is (at least for now) gone:

Standardizing the UI look of different bundled and add-on programs in Windows 7 is an interesting trend that is worth following in the months to come.
This blog is about putting pixels on screen. If i need to choose between getting a bunch of finished images from a graphics designer and hand coding each and every pixels in the code, you know my choice. We must, however, acknowledge our limitations and strive to better our understanding of what a good design is. Only exceedingly few have equal talent and passion for both design and programming, but the rest of us can at least try and learn from the best minds on the other side of “the fence”.
Below you will find links to twenty design sites and blogs that i currently follow. Unfortunately, the lack of time has me use an RSS reader, and as such a site that does not publish full article feeds is simply not going to make it. This might weed out a few good sites, but that is an unfortunate consequence of the information deluge age that we are living in.
The sites are listed alphabetically – click on the banner to visit the site and to subscribe to its RSS feed.
1. 84 Bytes

2. Architectures of Control

3. Beeex

4. Boxes and Arrows

5. Designm.ag

6. Digital Artist Toolbox

7. Freelance Folder

8. Fuel Your Creativity

9. Functioning Form

10. Function Web Design

11. Graphics Design Blog

12. Hongkiat

13. Just Creative Design

14. Observin

15. Outlaw Design Blog

16. Positive Space

17. Smashing Magazine

18. Usability Counts

19. Usability Post

20. Vandelay Design

Core Swing is in the process of being retired as a legacy UI technology inside Sun, and last week has marked another sad (yet expected) milestone. According to Jeanette Winzenburg‘s post on the SwingLabs java.net forum, Sun has stopped funding of the SwingX project.
Announced at JavaOne 2004 under the JDNC brand, SwingLabs has been widely considered as a breeding ground for modern UI technologies (new components, markup language, binding etc) for later inclusion in the core JDK distribution. It has enjoyed significant attention from the Swing community, drawing dozens of outside developers to contribute code and discuss various approaches to provide modern, rich and customizable components. Perhaps the culmination of these discussions happened in 2006 around the painters. The community members (IMHO) have truly believed that SwingX is being officially regarded inside Sun as a gateway for those contributions to find their way into the core Swing, and the level of excitement was clearly visible throughout the well argumented and heated discussions about the painters.
In my view, the turning point has come in January 2007 when it was announced that Sun unilaterally has decided to remove the entire painter layer from SwingX. This has effectively destroyed the trust of external contributors, who never came back, even after Sun developers have retired themselves from being involved in the project. In this light, Amy’s comment on Jeanette’s thread is a little misguided:
SwingLabs isn’t being shut down and SwingX isn’t going anywhere — it’s a great extensions library that exists because the community drove the development in the direction they needed. I don’t see that ending.
In fact, that single internal decision that completely disregarded the whole year of discussions was the most unfortunate moment in the project’s history. Looking back, it is even more unfortunate since SwingX components are not going to be part of core Swing (more on this later). Up until that moment the community has believed that it had an equal say in the development direction. After that moment most of the community has left, and a few months later Sun has decided on the new direction – JavaFX.
I don’t know what the future holds for JavaFX. Sun is heavily betting on it, and nobody wants to have their Nomad moment forever archived on the Internet. All i know is that JavaFX has effectively halted all core Swing development. Over the last 18 months, we have seen significant architectural initiatives (JSR 295 and JSR 296) changing leads and frozen. All client-facing improvements in Java2D, AWT and Swing in Java 6 Update 10 are completely driven by the requirements of JavaFX. In Richard’s own words (the same thread on SwingX funding):
Swing is part of the JDK. It isn’t going away any time soon. For a great many large enterprise applications Swing is the best cross platform toolkit available. We’ll continue to support and work on fixing bugs in the JDK.
It can’t get any clearer – the only two active areas of Swing core work is support and bug fixing. You might say that things will change once JavaFX 1.0 is out the door, but this is quite unlikely. JavaFX has a lot of ground to cover if it is to compete with Adobe and Microsoft, and it has even more ambitious plans for mobile and set top environments. In Richard’s words:
Definitely no question that there is a lot of working going into JavaFX and will continue to happen.
What do i see happening? I think that the current core Swing feature set should be considered frozen, until shown otherwise (not in words, but in actions). Swing is an extremely well written and customizable UI toolkit, and it is a solid candidate when you consider writing your next UI application. However, the innovation must come from third-party developers, be it binding, application framework, components or markup language. As the Swing Links trail on this blog shows, there is a lot of external activity in this area.
I think that core Swing has become a victim to Sun’s outdatedly rigid policy on the backwards compatibility. I have written about this topic in the Substance users mailing list a few weeks ago:
The eternal fear of Java core libraries is to never break existing applications (by the way, the Swing forums are rife with examples of applications that break when migrated to a newer JDK versions; it doesn’t have to be EDT violations, something as simple as event firing condition due to a bug fix is enough). This fear has us stuck with Ocean as the default look-and-feel. This fear has us stuck with tons of deprecated APIs that unnecessarily complicate the learning curve for the novice users (how many ways to catch an Enter key on text field?) This fear has us stuck with obsolete layout managers (gridbag, spring). And by the way, this fear also prevents the core developers from adding new functionality out of the fear itself that they might get it wrong the first time and get stuck with it forever.
Like i said before, in the grand scheme of things, it all doesn’t matter. Technologies die, new technologies are born, people move to other companies, old prejudices refuse to die and some decisions are forced on technical people. The customers, of course, couldn’t care less about all this.
Here are some Swing links that you might have missed during the last week:
- Fabrizio Giudici writes about an embedded screencast recorder for Swing application written by Jeremy Wood. It has a custom repaint manager that tracks dirty rectangles, and global event handlers to track mouse and component events.
- Jeremy Wood himself blogs about customizable toolbars that support drag-and-drop reordering of the items.
- Matt Nathan has created the first draft of documentation on scalable icons. He starts off by surveying the three different design options that he considered, and then delves deeper into his ScalableIcon interface, showing how to implement and use it.
- Mirko Stocker writes about Java UI testing with JRuby, comparing SWTBot and Marathon tools.
- Ken Orr has a tip to use look-and-feel consistent fonts onthe JEditorPane component. A fortunate coincidence had Ken posting this just a few hours after this question has been asked on the Substance forums :)
- Henry Lander has announced release 2 of the Java Print Dialog Framework.
- Bernhard Huber writes about integrating Groovy SwingBuilder and the XHtmlRenderer (Flying Saucer) project.
- The latest feature article on java.net by Joshua A. Davis and Thaddeus Keenan Simmons shows how to integrate OpenGL and Java2D.
- Jean Francois Poilpret is getting ready to release version 1.0 of DesignGridLayout in a few days, and he has created a five-part series (part 1, part 2, part 3, part 4, part 5) that follows the development takeover of the project.
- Don DeCoteau was interviewed last week on this site, and he follows up with version 0.9.1 of Sage engine. Noteable additions include map viewer and coverflow viewer available in a standalone jar.
- Alex Ruiz writes about respecting the EDT rules in the FEST-Swing library. It is great to see this topic getting the attention it deserves, because even veteran Swing developers still have serious misconceptions about EDT rules in particular, and multi-threading issues in general.
- Christophe Le Besnerais shows how to use the JXLayer library to highlight search results in an Explorer clone demo. JXLayer is written by Alexander Potochkin and it is one of my favourite third-party Swing utilities.
- Mikael Grev has started writing the media player, and has hit a serious performance issue with translucent windows in 6u10 under Windows. In the followup comments he hints at finding a solution, so perhaps not all is lost yet…
- Finally, those living around the Bay Area are welcome to attend the free Silicon Valley Code Camp community event. It is going to take place on November 8-9 (this Saturday and Sunday), and among the 116 sessions you can find Alex Ruiz talking about UI testing, Andres Almiray talking about Java2D / Groovy and Groovy SwingBuilder.
All in all, this week has seen more Swing blogosphere activity than JavaFX has seen over the entire last month :)