JDK-6636230 : Nimbus L&F: Basic components should be non-opaque to solve deffinition of backgound color
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u5,6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2007-11-30
  • Updated: 2011-02-16
  • Resolved: 2007-12-17
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 b09Fixed
Related Reports
Duplicate :  
Description
All Nimbus components that paint focus or have rounded corners should be non-opaque by default. This is because when you set the components backgound color on text field for example the backgound color should be the color of the area behind the text, not the color of the area around the outside of the border. The area in the corners and around the outside of the border should just be showing though to the parent component, ie transparent = non-opaque. 

This means that it is down to the components to decide what its backgound color should map to, this is undefined for components like Button and Combo whos backgound is a complex shaded fill and not a single color. Its also undefined for components like checkbox and radiobutton that have no backgound as they are only a icon and text. For textfields they should map there backgound color to the white area behind the text.

Comments
EVALUATION The opaque setting for each component that is rounded or has focus needs to be set non-opaque in the nimbus laf xml file. Also a few components have hard coded opaque=true which need to be changed so they can be set by the look and feel.
30-11-2007