RFR: 8075916: The regression-swing case failed as colored text is not shown on disabled checkbox and radio button with Nimbus LAF

Jayathirth D V jdv at openjdk.org
Thu Sep 15 06:45:43 UTC 2022


On Tue, 6 Sep 2022 05:57:09 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> CheckBox.disabledText and RadioButton.disabledText color UIProperty is not honoured by Nimbus L&F when disabled text is drawn for JCheckBox and JRadioButton, so disabled text color was rendered incorrectly.
> Fix is to honour these UIProperty color if they are set by user, else use the color from the component or via getColorForState().
> 
> Closed test as mentioned in JBS is used to check the fix.

Closed test case mentioned in JBS runs only in Default LAF. We need to explicitly specify LAF.
Also it looks like closed test is unstable:
1) With default LAF test hangs in my mac
2) With Nimbus LAF it passes without the fix.

Its better to add separate regression test to verify this fix.

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

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



More information about the client-libs-dev mailing list