<Swing Dev> RFR: 8058704: Nimbus does not honor JTextPane background color [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Tue Aug 3 05:47:36 UTC 2021


On Mon, 2 Aug 2021 22:13:24 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Fix
>>  - JEditorpane background color fix
>
> src/java.desktop/share/classes/javax/swing/plaf/nimbus/skin.laf line 25750:
> 
>> (failed to retrieve contents of file, check the PR for context)
> What is the difference between background and shape tags?

I have looked at https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/_nimbusDefaults.html where default color for 
EditorPane.background and TextPane.background is NimbusBlueGrey and not White what we have now, so I think we are having what is being specified in nimbus-default.
SwingSet2 background color for the demos are same before and after the fix.
I am not sure about the difference between background and shape but I have ran full JCK/JTREG tests and all are fine. I also tried passing Nimbus L&F via CI script for JCK/jtreg tests and those are also same before and after fix.

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

PR: https://git.openjdk.java.net/jdk/pull/4930


More information about the swing-dev mailing list