Details
-
Bug
-
Resolution: Fixed
-
P3
-
8u192, 11, 12, 13
-
b14
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8222597 | 12u-cpu | Dmitry Markov | P3 | Resolved | Fixed | master |
JDK-8222050 | 12.0.2 | Dmitry Markov | P3 | Resolved | Fixed | b03 |
JDK-8219790 | 11.0.4-oracle | Dmitry Markov | P3 | Resolved | Fixed | b01 |
JDK-8221111 | 11.0.4 | Dmitry Markov | P3 | Resolved | Fixed | b01 |
JDK-8221236 | openjdk8u222 | Dmitry Markov | P3 | Resolved | Fixed | b01 |
JDK-8219968 | 8u222 | Dmitry Markov | P3 | Resolved | Fixed | master |
JDK-8221669 | 8u221 | Dmitry Markov | P3 | Resolved | Fixed | b02 |
JDK-8224421 | emb-8u221 | Dmitry Markov | P3 | Resolved | Fixed | b02 |
Description
due to resource limitation, the background color of panel is specified as
light gray, but the color of repaint area is not drawn by that color. In the
case of background color setting, the value generated by
sun.awt.image.PixelConverter class is used. However, when rendering like
repaint, the value of Ushort565Rgb class which is an inner class of
PixelConverter is used. Due to this difference in the values used, colors do
not match.
The difference between the two values is as follows:
java.awt.image.ColorModel cm = new
java.awt.image.DirectColorModel(16,0xf800,0x7e0,0x1f);
...
A =
sun.awt.image.PixelConverter.instance.rgbToPixel(java.awt.Color.lightGray,cm);
// value of background color
B =
sun.awt.image.PixelConverter.Ushort565Rgb.instance.rgbToPixel(java.awt.Color.l
ightGray,cm); //value of repaint color
A -> #bdf7:10111 101111 10111
B -> #c618:11000 110000 11000
java.awt.Color.lightGray = #c0c0c0:11000000 11000000 11000000
Each one is getting the correct value. 0xbdf7 is set as the background color
of window and 0xc618 is set to the drawing color of fillRect() called by
repaint. Therefore, when part of the Panel is redrawn, the phenomenon occurs
that only the area is different in color.
Attachments
Issue Links
- backported by
-
JDK-8219790 XToolkit is not correctly displayed color on 16-bit high color setting
- Resolved
-
JDK-8219968 XToolkit is not correctly displayed color on 16-bit high color setting
- Resolved
-
JDK-8221111 XToolkit is not correctly displayed color on 16-bit high color setting
- Resolved
-
JDK-8221236 XToolkit is not correctly displayed color on 16-bit high color setting
- Resolved
-
JDK-8221669 XToolkit is not correctly displayed color on 16-bit high color setting
- Resolved
-
JDK-8222050 XToolkit is not correctly displayed color on 16-bit high color setting
- Resolved
-
JDK-8222597 XToolkit is not correctly displayed color on 16-bit high color setting
- Resolved
-
JDK-8224421 XToolkit is not correctly displayed color on 16-bit high color setting
- Resolved
- relates to
-
JDK-6304250 XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set
- Closed