JDK-4865071 : XP L&F: REGRESSION: setBackground has no effect on JTextField in Windows XP
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2003-05-15
  • Updated: 2003-07-28
  • Resolved: 2003-07-07
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.
Other
1.4.2_01 01Fixed
Related Reports
Relates :  
Relates :  
Description

Name: rmT116609			Date: 05/15/2003


FULL PRODUCT VERSION :
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2
Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)

FULL OS VERSION :
Windows XP

A DESCRIPTION OF THE PROBLEM :
setBackground has no effect on JTextField when running on Windows XP.
The text field is always white no matter what color you set.

This bug only occurs on Windows XP and does not occur on older versions
of Windows.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
JTextField text = new JTextField();
text.setBackground(Color.red);


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A text field with red background.
ACTUAL -
A text field with white background.


REPRODUCIBILITY :
This bug can be reproduced always.

Release Regression From : 1.4.1_02
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.

(Review ID: 185638) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.4.2_01 tiger FIXED IN: 1.4.2_01 tiger INTEGRATED IN: 1.4.2_01 tiger tiger-b11 VERIFIED IN: 1.4.2_01 tiger
14-06-2004

EVALUATION WindowsTextFieldUI should check if editor background has been set. ###@###.### 2003-05-16
16-05-2003