RFR: 7175396: The text on label is not painted red for Nimbus LaF. [v2]

Sergey Bylokhov serb at openjdk.org
Tue Sep 13 03:06:42 UTC 2022


On Wed, 24 Aug 2022 04:43:50 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
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Review comments

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthLabelUI.java line 220:

> 218:             Color col = UIManager.getColor("Label.foreground");
> 219:             if (col != null) {
> 220:                 label.setForeground(col);

Are you sure that the text color of the label should be changed on each repain?

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

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



More information about the client-libs-dev mailing list