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

Incorrect doc tag for TextComponent.getBackgroundColor()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta
    • generic
    • generic


          /**
           * Returns the background color of this text component.
           * Note that a non-editable <code>TextComponent</code>
           * will default to the background color.
           * <code>SystemColor.control</code>.
           *
           * @return this text component's background color;
           * if this text component does not have a background color,
           * the background color of its parent is returned
           * @see setBackground
           * @since JDK1.0
           */
          public Color getBackground() {
              if (!editable) {
                  return SystemColor.control;
              }

              return super.getBackground();
          }

      Instead of

           * will default to the background color.
           * <code>SystemColor.control</code>.

      It should read

           * will default to <code>SystemColor.control</code>.

            ehawkessunw Eric Hawkes (Inactive)
            ehawkessunw Eric Hawkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: