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

There are different colors of the ScrollBar after setBackground on Motif/XAWT

XMLWordPrintable

    • x86
    • linux

      I have just a ScrollBar. When I invoking a method setBackground(Color.red) and then invoking Robot.getPixelColor on the pixel of the center of the scrollbar I expect to see exactle the same color values on Motif and XAWT. But the values of the color on Motif is different from the value of the color on XAWT.

      Seems that the incorrect result appear after shadow of the color.

      I have attached a simple test. You will see that the color on XAWT equals java.awt.Color[r=216,g=0,b=0] and the color on Motif equals java.awt.Color[r=217,g=0,b=0]
      ###@###.### 2005-04-11 08:05:46 GMT

            dav Andrei Dmitriev (Inactive)
            dcherepanov Dmitry Cherepanov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: