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

Button does not seem to inherit the background color property from the parent frame, win32

XMLWordPrintable

    • x86
    • windows_xp

      When no background color is set for a particular component, the component is expected to inherit it from it's parent. This does not work for a button. I am setting a background color to a Frame and adding a button to it. The button still retains it's gray background and ignores the frame's background color. However, it inherits other properties such as Font and Foreground color. This works fine for other components.

      This is reproducible atleast since 1.4 on Win32. Not reproducible on Solaris/Linux with XToolkit/Motif.

      I have attached a sample test. Execute the sample test. If the button does not appear in yellow color, the bug is reproduced.
      ###@###.### 2005-03-27 16:20:02 GMT

            dav Andrei Dmitriev (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: