Name: rlT66838 Date: 06/20/2000
> java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-beta)
Java HotSpot(TM) Client VM (build 1.3-beta, mixed mode)
http://java.sun.com/j2se/1.3/docs/api/java/awt/TextComponent.html#setBackground(java.awt.Color)
As 4320177 states, non-editable TextComponents are set to gray to distinguish
them from editable TextComponents. The api documentation should reflect this.
This is the evaluation of 4320177:
Originally, non-editable TextComponents had gray (or an OS-dependent color)
as the default background. Some time in the 1.1.x line, and in 1.2beta4,
we changed to using desktop colors as defaults.
We received a large number of complaints about this issue: developers wanted
the default background (e.g. gray) that they were used to seeing. The most
common reason cited for this was that users want a visual cue that the
TextComponent is not editable, and they are used to seeing "grayed out" as
non-editable. So, we restored the original behavior: non-editable
TextComponents no longer retain the color set using setBackground(). They
default to SystemColor.control.
(Review ID: 106349)
======================================================================