RFR: 7175396: The text on label is not painted red for Nimbus LaF.
Abhishek Kumar
abhiscxk at openjdk.org
Wed Dec 14 11:47:56 UTC 2022
On Wed, 14 Dec 2022 04:59:56 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> Label.foreground UIProperty is not honored by Nimbus L&F. It needs to be Label[Enabled].textForeground which is the corresponding Synth property
> Added support for setting JLabel foreground color for Nimbus L&F
test/jdk/javax/swing/plaf/nimbus/TestNimbusLabel.java line 77:
> 75: java.awt.Color.red);
> 76: label =
> 77: //new JLabel("This text should be in red");
Commented code can be removed.
-------------
PR: https://git.openjdk.org/jdk/pull/11660
More information about the client-libs-dev
mailing list