<Swing Dev> RFR: 8058704: Nimbus does not honor JTextPane background color [v2]
Sergey Bylokhov
serb at openjdk.java.net
Mon Aug 2 22:16:32 UTC 2021
On Mon, 2 Aug 2021 04:52:27 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> test/jdk/javax/swing/plaf/nimbus/TestNimbusJTextPaneColor.java line 74:
>>
>>> 72: if (frame != null) {
>>> 73: SwingUtilities.invokeAndWait(frame::dispose);
>>> 74: }
>>
>> `frame` is accessed on main thread without synchronisation.
>
> NimbusLookAndFeel is customized look and feel but I don't see mention of default background color to be white in spec..If it is not set explicitly, background color is drawn in "NimbusBlueGrey" background which seems to be same as what is used in SwingSet2 demos in Nimbus L&F
This is not specified since the color of L&F are implementation details, for Nimbus, some of them are described here:
https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/_nimbusDefaults.html
So when you delete the color from the xml, does the SwingSet2 still use the same color as before? Then for what the color in the xml was responsible?
-------------
PR: https://git.openjdk.java.net/jdk/pull/4930
More information about the swing-dev
mailing list