Thu 9 Apr 2009
As Dalibor’s blog reminded me1, the Nimbus Swing look and feel hit the OpenJDK repositories yesterday. We’ve been waiting on the JDK 6 Update changes to trickle through for some time, so it was great to see this huge lump of code land on us. The downside? It looks like someone accidentally dumped a lump of their build environment in there too, so we’ll have to wait some time until Nimbus is properly in OpenJDK.
But why would anyone want this you ask? Well, I wondered a little myself so I hacked up a little Swing code and found out (after remembering how to write it in the first place — so don’t blame me if it sucks). Here’s the app using Metal (the default on Fedora 10):
And now here’s it on Nimbus:
The difference should be plain to see. This is running as a patch on OpenJDK6 built from hg with bug 100036 and bug 100037 (Nimbus) applied.
$ /builder/builds/jdk6/build/linux-amd64/bin/java -version openjdk version "1.6.0-internal" OpenJDK Runtime Environment (build 1.6.0-internal-andrew_08_apr_2009_18_50-b00) OpenJDK 64-Bit Server VM (build 11.0-b17, mixed mode)
Hopefully, things will be sorted out in good time for this to appear in Fedora 12!
1 - Why blog yourself when a third party will undoubtedly do it better?


April 9th, 2009 at 9:15 pm
Hi Andrew,
Fedora 12? Come on, the Fedora guys are usually more adventurous than that. A Fedora 11 update sounds more like it.
Ismael
May 22nd, 2009 at 10:34 pm
Note to future self: the magic property for Nimbus is:
-Dswing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
October 23rd, 2009 at 1:53 pm
[...] VM with the option -Dswing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel. Refer to my previous blog on the subject for some example code. [...]
February 18th, 2010 at 6:23 pm
[...] built, you will have a build of OpenJDK6 which can use the Nimbus Look and Feel as explained in my previous blog [...]