Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4346804

TextComponent.setBackground() api doc needs to be updated due to 4320177

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • docs
    • beta
    • generic
    • generic



      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)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: