TextField and TextArea never inherit foreground and background colors

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 5.0, 6
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: