Category Archives: Swing

Nimbus Customization

After reading Jasper Potts blog entry about Nimbus look & feel customization I started writing some code to see how powerful it was. I focused my tries on this part of the nimbus capacity :

Colors in Nimbus are derived, which means there are a core set of colors which are constants and all the other colors are calculated from those. This means you can simply change those and the 1000s of other colors that are related and used in the painters will update to reflect the new base color. These colors are shown in the “Primary Colors” section of the table.

I was starting my demo application for the 1000 times when I told myself “wow, it could be great to have a Nimbus Customizer that would show you the result of nimbus customization in real-time !”.

The result is the Nimbus Customizer application that offers to edit nimbus primary colors properties and show you the result on a part of the laffy project demo.

There is “save” or “see”  function the allow you to retrieve the code to use on your application to customize nimbus. Don’t forget to set the look and feel to nimbus in your custom application using the following code : UIManager.setLookAndFeel(“com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel”);

Jar with code and example to launch available on download page !

LoNee