RFR: 8289539: The color returned by CheckBox.interiorBackground is incorrect
Tejesh R
tr at openjdk.org
Mon Sep 26 06:05:35 UTC 2022
On Thu, 22 Sep 2022 19:15:05 GMT, Harshitha Onkar <honkar 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_.
>
> test/jdk/javax/swing/JCheckBox/InteriorBackgroundTest.java line 33:
>
>> 31: * @test
>> 32: * @bug 8289539
>> 33: * @key headful
>
> Is this test marked headful to load system colors associated with the LAF?
> Since we are not displaying anything on screen.
I specified as headful since I'm using JFrame to subclass and change the Look and Feel at Runtime. Not sure if I can make is headless.
-------------
PR: https://git.openjdk.org/jdk/pull/10385
More information about the client-libs-dev
mailing list