United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6463612 6451939 only fixed for Metal L&F
JDK-6463612 : 6451939 only fixed for Metal L&F

Details
Type:
Bug
Submit Date:
2006-08-24
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2006-08-31
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Relates:
Relates:

Sub Tasks

Description
6451939 was only fixed for Metal L&F. The behavior is still reproducible on Win XP, Win Classic and Motif L&Fs. Try to run attached application on mentioned L&Fs and it shows the problem.

                                    

Comments
EVALUATION

The fix for 6451939 tried to be careful about when colors were replaced by checking that the existing background was one of the known colors for the component. Unfortunately, even this isn't enough. In some cases, JLabel uses the same background color as one of those that the text components know about.

For now, we haven't yet determined an optimal way to solve this problem. So we'll stop replacing the background color altogether for JTextArea. A new bug will be filed so that we can solve this problem in a better way.
                                     
2006-08-24
EVALUATION

To summarize what Shannon said:
. This is a regression introduced in the fix for 4991597.
. 6451939 tried to fix this, but it fails for some look and feels (windows).
. Proposed fix is to effectively revert the part of 4991597 that is breaking JTextArea (what this bug is against).
                                     
2006-08-24



Hardware and Software, Engineered to Work Together