RFR: 8289539: The color returned by CheckBox.interiorBackground is incorrect

Tejesh R tr at openjdk.org
Tue Sep 27 08:45:18 UTC 2022


On Tue, 27 Sep 2022 08:33:00 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

> > > 
> > 
> > 
> > In other L&F there is no such `checkbox.interiorBackground` property hence it is null value when user tries to access it. In windows since in Classic its been used, that property exist for windowsL&F also (Which is not using that property). And also in Windows L&F I couldn't find a way to change the interior background of checkbox as in WindowsClassic, since the image is painted using ImageCache.
> 
> From where the ImageCache knows that it needs to draw/use blue bitmap for checkbox.interiorBackground for Windows 11?

Couldn't find the exact source, but was able to verify while debugging in `PaintSkin() ` where checkBox check/uncheck was handled by using `ImageBuffer` where it just toggle the image for check and uncheck in windows L&F. This image in windows10 and windows11  differs in interior background color.

-------------

PR: https://git.openjdk.org/jdk/pull/10385



More information about the client-libs-dev mailing list