J user interface has a number of complex components such as Grid and Treeview, which are drawn with J graphics and written in J itself.

However, when appearing inside a form alongside native controls, there is a notable look-and-feel mismatch: default font and anti-aliasing, individual controls such as checkboxes and radio buttons, adornments such as scroll bars and their elements.

look-and-feel_mismatch.png

The Synth look and feel, the newest addition to Swing introduced in Java 5.0. Synth lets developers rapidly create and deploy custom looks for an application by introducing the concept of a "skin" to Java UI programming.

It allows to create a custom look-and-feel declaratively in an XML file, where complex graphics is defined using images.

Here's an example of a (programmatic) Ocean theme and a (declarative) custom Synth theme.

ocean.jpg

synth.jpg

There are many existing Synth themes, which can be emulated.

See Also

OlegKobchenko/Synth Theme (last edited 2009-04-25 09:02:32 by OlegKobchenko)