JDK-6660600 : Nimbus L&F: Regression: PIT: TitleBorder is changing the background color of the components
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-02-07
  • Updated: 2011-02-16
  • Resolved: 2008-03-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u10 b13Fixed
Related Reports
Relates :  
Description
TitleBorder is changing the background color of the components within its range to White

To Reproduce:

1. Run the SwingSet2 demo
2. Switch to the Table demo or the Slider demo
3. On the Table demo, check the Background color on the Selection Mode, Auto Resize Mode and Printing areas.  It is White compared to the grey in other areas.  
4. On the Slider Demo, check all the Sliders, background it White. 

Background color used to be grey for all the fields in the previous builds.  This started to show up after the fix 6594224 as part of 6595814.

More Info:
After discussing with Jasper, this looks related to D3D and how Nimbus handles it.  When I ran the SwingSet2 with D3D false, background looks ok.  

Platform : Win XP, with NVidia GEForce 8400 GS. 

Attached are images of SwingSet2 with D3D on and off.

Comments
EVALUATION This is likely because the code in InnerShadowEffect assumes ARGB image but in D3D/OGL case images returned from createCompatibleImage(w,h, TRANSLUCENT) have ARGB_PRE color model, and LoweredBorder.doPaint() uses such image for filtering. I would suggest to always use BufferedImage instead of createCompatibleImage there.
11-02-2008