RFR: 8289539: The color returned by CheckBox.interiorBackground is incorrect
Tejesh R
tr at openjdk.org
Tue Sep 27 05:36:28 UTC 2022
On Mon, 26 Sep 2022 15:18:26 GMT, Jayathirth D V <jdv at 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_.
>
> src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java line 661:
>
>> 659:
>> 660: "CheckBox.font", ControlFont,
>> 661: "CheckBox.interiorBackground", (xp != null)?
>
> Do we return any color other than the default FFFFFF/null?
> What is the use of "win.frame.backgroundColor" property when we always return table.get("window")?
`win.frame.backgroundColor` is key and value is color set for `window`. Default color is FFFFF/null, when it is set by user the color updates.
-------------
PR: https://git.openjdk.org/jdk/pull/10385
More information about the client-libs-dev
mailing list