JDK-6531760 : JTextField not honoring the background color
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6,6u1
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: linux,solaris_10
  • CPU: x86,sparc
  • Submitted: 2007-03-07
  • Updated: 2011-04-28
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
In GTK Look and Feel, JTextField is not honoring the Background color set with the setBackground().  

Run the attached testcase on Solaris.

Expected: Background of the text field in Black Color

Actual: Background in White Color, it
Updated with the swing-nimbus keyword, since this bug is also in nimbus look and feel.

Comments
EVALUATION This has been fixed for Nimbus LAF in bug 6595814. Nimbus now honers the component backgound color on a TextField as long as it is not a UIResource. It is then used to replace white as the backgound inside the text field border. I have removed the swing-nimbus keyword as this is fixed for Nimbus.
06-02-2008

EVALUATION By now we ignore user defined color settings for components in flavor of native look.
02-07-2007