RFR: 7175396: The text on label is not painted red for Nimbus LaF.
Harshitha Onkar
honkar at openjdk.org
Wed Aug 24 00:06:36 UTC 2022
On Wed, 17 Aug 2022 10:46:07 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> Label.foreground UIProperty is not honored by Nimbus L&F.
> Added support for setting JLabel foreground color for Nimbus L&F
Copyright year for SynthLabelUI.java needs to be updated.
Applied the patch and tested, fix works.
test/jdk/javax/swing/plaf/nimbus/TestNimbusLabel.java line 77:
> 75: java.awt.Color.red);
> 76: label =
> 77: new JLabel("<html><body>Can You Read This?</body></html>");
Minor suggestion: how does "This text should be in red" sound ?
test/jdk/javax/swing/plaf/nimbus/TestNimbusLabel.java line 119:
> 117: }
> 118: }
> 119: }
missing new line at EOF
-------------
PR: https://git.openjdk.org/jdk/pull/9900
More information about the client-libs-dev
mailing list