March 18th, 2009

New Dust skin for Swing applications

In addition to bug fixes and performance improvements in Substance 5.2 (code-named Quebec), i’m planning to introduce a few new skins. The first is Dust which is based on the artwork done by Rico Sta Cruz and Kido Mariano for Ubuntu. If you want to take it for a spin, click on the WebStart button below and change the skin to Dust from the “Skins” menu:

To use it in your application, you have the following three options:

  • -Dswing.defaultlaf=org.jvnet.substance.skin.SubstanceDustLookAndFeel
  • UIManager.setLookAndFeel(new SubstanceDustLookAndFeel())
  • UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceDustLookAndFeel");

Here are a few screenshots that show this new skin. A small frame with a tabbed pane and a few different controls:

A frame with menu bar, tool bar and status bar from SwingX project:

A thumbnail of the main Substance test application (click for full-size view):

As with all Substance core skins, this is work in progress and will be polished over time. Dust is also the first skin that is using the experimental color schemes definition file. While the existing Autumn and Nebula skins have been moved to use such files as well, this functionality is planned to be officially supported in the next major Substance release.

In the meantime, you’re more than welcome to take the latest 5.2dev drop for a spin and leave your comments.