Java Swing LNF: Nimbus

There has been some buzz recently surround a new LNF (look and feel) being worked on at Sun called Nimbus. Over all I think it looks fantastic and doing a great-looking LNF is something I’ve always wanted to do, but never set down to actually work on. Here are some quick shots of what Nimbus will look like to get an idea:

Nimbus Buttons Nimbus Combo Boxes

But what the author did recently is start putting together a specification for Nimbus. That’s when I suddenly realized just how hard it was to put together a good LNF. For example, here’s a gradient chart simply for scroll bars:

Nimbus Scrollbar Gradients

Then you have charts like this for every component… think of a button, there are individual charts for buttons that are:

  • Default buttons
  • Selected buttons
  • Normal buttons

At the end of the day you really realize just how much work it takes to put one of these together. It gives me a bit more patience with the “Ocean” LNF revision to the default Swing Metal LNF that came out with Java 5 (and was horrible):

Swing Metal Ocean LNF

Tags: ,

About Riyad Kalla

Software development, video games, writing, reading and anything shiny. I ultimately just want to provide a resource that helps people and if I can't do that, then at least make them laugh.

,

2 Responses to “Java Swing LNF: Nimbus”

  1. Christian October 8, 2009 at 1:05 am #

    Hello,

    i use the new nimbus laf, but new my project is very instable.
    I become Nullpointer-Exceptions in my AWT-Thread:
    javax.swing.plaf.synth.SynthContext.getPainter(SynthContext.java:181)

    I use Java JDK 1.6 Update 16

    Sorry for my bad english! (is it allowed to write an german post?)
    Christian

  2. James February 25, 2011 at 9:14 am #

    @Christian, I also get the same error. Did you ever find a solution.

Leave a Reply


− 2 = 2