JDK-6752660 : Nimbus L&F: "Nimbus.Overrides.InheritDefaults" does not get honered if set after ���Nimbus.Overrides"
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2008-09-25
  • Updated: 2011-02-16
  • Resolved: 2010-05-21
Related Reports
Duplicate :  
Description
The slider skinning example src attached from http://www.jasperpotts.com/blog/2008/08/skinning-a-slider-with-nimbus/ works in 6u10 b25 beta and is broken in 6u10 b28 RC. The issue is the client property "Nimbus.Overrides.InheritDefaults" = false is never picked up if set after "Nimbus.Overrides".  

There is a workaround by setting "Nimbus.Overrides.InheritDefaults" = false before setting "Nimbus.Overrides".

Comments
EVALUATION I think this bug was intruced with the style caching that Richard intrduced in b26 bug 6690263. In the NimbusDefaults method getStyle() it needs to look for "Nimbus.Overrides.InheritDefaults" as well as ���Nimbus.Overrides".
25-09-2008