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

TextField and TextArea never inherit foreground and background colors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0, 6
    • client-libs
    • sparc
    • solaris_9

      Contrary to the spec requirements, TextField and TextArea cannot inherit foreground
      and background colors from the parent window. Calling setForeground/setBackground(null)
      has no effect (tried JDK 1.4 through 1.6, several window managers). Note that
      isForegroundSet/isBackgroundSet() returns false, implying that the colors will be
      inherited.

      Note that setting colors explicitly to a non-null value works fine, so this doesn't
      seem to be related to limitations of particular window managers.

      A sample class to play with is attached.

            dav Andrei Dmitriev (Inactive)
            savzan Stanislav Avzan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: