Here are some Swing links that you might have missed during this week:
- Alexander Potochkin continues his work on the advanced overlay functionality. His latest entry describes a solution for disabling Swing containers, including blocking mouse events, focus transitions and keyboard actions. While the proposed solution uses a clever trick (calling JComponent.print() instead of JComponent.paint() to address the double-buffer quirks on some containers), you’ll find some interesting discussion in the comments section. Some applications will result in incorrect painting on components that provide custom implementation of print() and the specific print methods like printComponent().
- Ben Galbraith kicks off an interesting discussion on the quality of AWT font rasterizer. I don’t agree with his recommendation of choosing the UI font based on the rendering quality (especially since the quality is very subjective). If anything, the font family, size, style and rasterization is what makes Swing applications stand apart (and not in a good way) from the native applications, even more than colors and skins do. This is why the native text rasterizer is so important, especially coupled with platform-specific font policy lookup.
- Jeff Friesen writes an overview of the Balloons Tip project at java.net.
- Patrick Gotthardt announces the first beta drop of version 1.1 of Pagosoft look-and-feel.
- Vincent Cobra announces his new project that aims to provide a file chooser component based on the Apache Commons VFS library.
Here are some Swing links that you might have missed during this week:
- Dusan Pavlika writes about a Master’s thesis by Jan Taus on skinning Swing components. The PDF file of the thesis provides a very detailed overview of how look-and-feels work – this is definitely a good introduction for the aspiring LAF writers.
- Christopher Deckers announces release 0.92 of the native components for Swing (web browser, media player, flash viewer). This release features improved Flash player and includes support for Linux platforms.
- Simon Morris shares his views on making Swing the best platform for the desktop development in the next few years. It brings together quite a few interesting ideas, including my number one wish for 2008 (full cross-platform video support) and echoing my lament on the amount of branding that Sun puts in the Java platform. His final vision of Java embedding native controls and native controls embedding Java components invokes the work that Christopher does on his DJ project (from the previous bullet).
- Chet Haase shares more demoes from the Scene Graph project. This entry shows an iPhone-like interface (don’t you just love blurry icons with pixelated outlines? :) ), and this entry shows a few very basic demo applications. Hopefully, by the time the project is released, the demoes will match the level of sophistication found on professional Flash websites.
- Andres Almiray writes a complete step-by-step introduction tutorial to the GraphicsBuilder. While you wouldn’t find anything that can’t be done in pure Java2D, the compactness and readability of the Groovy code is very impressive. Groovy-based look-and-feel anyone?
- Dalton Filho writes a detailed tutorial for Swing developers that wish to learn the wxWidgets UI toolkit. This might be a nice addition to the UFacekit project that was mentioned last week.
- Eric Burke posts a call to action on providing a full-fledged Java counterpart of Excel spreadsheet component. Along the way, he argues that the JTable is not a good fit as a base class for such a component, and he has quite a few good points. I’m quite skeptic that somebody would be able not only to start such a project, but also to follow through on all the complexities and functionality that is provided by the latest Excel :(
- Tim Dalton updates on the bridge between Swing and Scala, posting information on the Google Code-hosted code repository for his SQUIB project.
- Two new project releases using the JIDE component suite. Designer Vista is a UI design tool that allows quick UI prototyping in a Visio-like interface. MyMoney is a financial software tool for working with online banking services.
- The Synthetica look-and-feel is used in the new release of MyUniPortal project. See the screenshots here.
I am not a professional designer, but i’m always ready to learn from people who have a finer eye and more experience than me. Last week i posted a screenshot of the newly redesigned enterprise application from Lawson (designed by frog design). As i hinted in that entry, some of the visuals are planned to be added in the next releases of Substance look-and-feel. Well, you don’t have to wait too much, at least for one of the visuals of this application.
First, here is a screenshot of the table component from that application:

and here is the table design from Nimbus:

There are a few interesting and subtle details here, all contributing towards very clean and elegant visuals of a table wrapped in a scroll pane:
- Continuity of the table border and scroll bar border
- Continuity of the table header, extending to the top-right corner of the scroll pane
- Continuity of the striped background
- Continuity of the selected background
Let’s see how such a table looked like in the previous Substance release (4.1 code-named Lima):

Non-native font rendering aside, there are quite a few problems:
- Even though the table grid is turned off, there are still white separator lines clearly visible on striped rows and especially on the selected row
- Too many lines on the table header – each cell has its own border
- Extra border to the right of the scroll bar results in additional visual noise
- The selection background doesn’t extend to the perceived table bounds on both sides
So, how does it look under the latest 4.2 drop that is scheduled to be the RC build if no bugs are found until Monday?

This addresses quite a few of the issues (continuity, borders, background, scroll pane corner component, native text rendering), and the end visual result is much cleaner. And here is the same table under right-to-left orientation:

Still few things to be addressed in the RTL mode, such as the location of the sort icon and the alignment of the default text renderers.
How does Substance fare against the competition? The same application under Nimbus from the latest 6.0u10 drop (obviously it is still work in progress):

While largely faithful to the design, there’s the off-by-pixel discrepancy where the table header meets the scroll bar, wrong foreground color of selected cells and too little vertical space for the rows (see how the icons “touch” the rows above them). The RTL mode breaks the visuals of the scroll bar and introduces more off-by-pixel’s in table header and scroll bar:

How about Synthetica? Here is the same application under Synthetica Blue Ice:

It has most of the same issues as Substance did in version 4.1, including the extra white lines on selected row, double border on the right hand side of the scroll bar, table header that doesn’t blend with the outer border and too little space on the left hand side of header cells. The RTL mode doesn’t have additional problems:

The Substance screenshots above were taken under the Nebula skin which uses some of the color schemes from the Nimbus design. Obviously, the same visual noise reduction applies to all other Substance skins. Here is the same application under the Business skin:

and the RTL mode:

These changes are available in the latest 4.2dev drop of Substance. The release candidate is scheduled for January 21st (this Monday) and the release is scheduled for February 4th. If you find any bugs, you can post a report on the project mailing lists, issue tracker or in a direct mail [kirillcool yahoo com].
Here are some Swing links that you might have missed during this week:
- Alex Ruiz writes about the release 0.8 of FEST-Swing library for functional Swing GUI testing. It features a considerable number of new functionality and seems to be progressing smoothly towards the first production-ready release.
- Andres Almiray writes about release 0.4.4 of GraphicsBuilder, bringing a variety of new features from Swing to Groovy.
- Dave Gilbert writes about release 1.0.9 of the JFreeChart chart library, mainly featuring bug fixes and small API improvements. I wonder what happened to the 3D support that has been announced last July. Is there a big demand for 3D charts? Is it worth the development effort?
- Peter Weishapl writes about updates to the xswingx project that brings advanced capabilities to text fields, including prompts, buddy icons and search fields.
- Jeremy Wood (java.net nick mickleness) has an interesting project on java.net for slideshow transitions. It features an impressive array of very smooth and rich transitions that can be employed in slideshow components.
- Sun’s marketing machine seems to pick up the steam on the application framework and beans binding projects (even though the technical leads seem to be currently devoting their resources to the JavaFX related activities). Tech Day Events blog has a short overview of these two projects, while Frank Sommers interviews Shannon Hickey on the beans binding at Artima.
- And speaking of the main technical lead for the application framework JSR, Hans Muller kicks off the series on the new Scene Graph project, showing a few very basic capabilities. Chet Haase writes about the next evolution of the Timing Framework that is undergoing very significant changes for its inclusion in Scene Graph (and probably JavaFX / Mustang Update N). The first part talks about the API changes, and the second part introduces the new functionality.
- Tom Schindl writes about the first version of the UFacekit project that aims to bring a common layer on top of different UI toolkits, including GWT, SWT / JFace and Swing. This is a commendable effort, and it would be very interesting to see how the authors (Tom and James Strachan) are going to tackle the functionality missing in some of the UI toolkits. Would that be the least common denominator, optional extensions (with querying the toolkit capability), emulation of missing features or something else? Definitely worth tracking.