Nimbus uses Painter to draw different styles. By default, a button has a gradient of more than one color. See "Button": Nimbus Default List
You can write your own Painter and override the default value. Or you override the background color using the "Button.background" key and use "Default".
UIDefaults overrides = new UIDefaults();
overrides.put("Button.background", Color.RED);
jbutton.putClientProperty("Nimbus.Overrides", overrides);
jbutton.putClientProperty("Nimbus.Overrides.InheritDefaults", Boolean.TRUE);
SwingUtilities.updateComponentTreeUI(jbutton);
, , :
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
defaults.put("Button.background", Color.RED);
Btw. JButton Nimbus "nimbusBase", :
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
defaults.put( "nimbusBase", Color.RED );
, nimbus defalut-blue , .
Nimbus, Nimbus : http://aephyr.googlecode.com/svn/trunk p >