JDK-6420149 : REGRESSION: Non-editable textarea/textpane/editorpane should have white background
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2006-05-01
  • Updated: 2011-03-08
  • Resolved: 2006-05-31
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
6 b86Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
4991597 changed Windows text components to use the proper gray background when non-editable. However, this seems contrary to what people have come to expect. Many people use non-editable text areas like this to show multi-line content, and the new gray background looks bad.

I will actually argue that what we do now for these areas is wrong.
- If I create a new .NET project and add a non-editable RichText control, the bg is white.
- Windows Help uses a non-editable area that has a white bg.
- In IE, use menu item Help->About and you'll see a non-editable area with white bg.

Finally consider how this affects the NetBeans output window. It was white and is now gray.

As such, all "areas" (ie. multi-line) text components should go back to the white bg.

Comments
EVALUATION This bug hinges on the definition of what is correct in Windows. It is clear that disabled components use the gray background (actually the win.3d.backgroundColor desktop property). This is what all textfield-ish components use and we should be consistent. However, there are a lot of modern Windows applications that use an uneditable RichText component to act as a multi-line label. To satisify both uses we have decided to make JTextPane, JEditorPane, and JTextArea use the white background (ie: use WindowBackgroundColor instead of ReadOnlyTextBackground).
04-05-2006