On Thu, 22 Sep 2022 06:59:59 GMT, Tejesh R <t...@openjdk.org> wrote:

> The color returned for `InteriorBackground` property is the default color 
> used for only _WindowsClassicLookAndFeel_. For _WindowsLookAndFeel_ the 
> `InteriorBackground` color is not been used when checkbox paint happens. In 
> _WindowsLookAndFeel_ the CheckBox check/uncheck is drawn using `ImageCache` 
> which is totally independent of `InteriorBackground` color in which the user 
> expects it to be.
> The proposed fix is to return null for _WindowsLookAndFeel_ (which is what 
> happens in other LookAndFeel like Metal/Synth/Motif/Aqua ) and return default 
> color which is the actual color used in _WindowsClassicLookAndFeel_.

> 

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.

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

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

Reply via email to