Looks like an error in jdk6, Panel.background is one of the properties that were not executed. After working in jdk7 (note the sequence: first set the color, then LAF)
UIManager.put("Panel.background", new Color(255,0,0)); UIManager.setLookAndFeel(info.getClassName());
I assume that it is still somehow buggy, since Nimbus should update its properties when it receives any changes in the managers settings, so changing the sequence to the first set of Nimbus and then putting the color) should also work, but doesnβt even in jdk7
UIManager.setLookAndFeel(info.getClassName()); UIManager.put("Panel.background", new Color(255,0,0));
It seems to be specific to Panel.background (and most likely to a group of others), the "control" in both jdks is fine, before and after installing LAF.
source share