United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6636230 Nimbus L&F: Basic components should be non-opaque to solve deffinition of backgound color
JDK-6636230 : Nimbus L&F: Basic components should be non-opaque to solve deffinition of backgound color

Details
Type:
Bug
Submit Date:
2007-11-30
Status:
Closed
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2007-12-17
Component:
client-libs
OS:
generic,windows_xp
Sub-Component:
javax.swing
CPU:
x86,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u5,6u10
Fixed Versions:
6u10 (b09)

Related Reports
Duplicate:

Sub Tasks

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.
                                     
2007-11-30



Hardware and Software, Engineered to Work Together