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

Sergey Bylokhov serb at openjdk.java.net
Mon Aug 2 22:16:31 UTC 2021


On Mon, 2 Aug 2021 05:00:18 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> The Nimbus look and feel ignores the configured background color of a JTextPane and always uses white. 
>> Every other look and feel tested (Metal, Motif, and Windows) correctly honors the configured background color of a JTextPane.
>> Issue seems to be in the hardcoded background color in nimbus skin which is rectified via the fix. 
>> After this fix, the background color is correctly updated to whatever is being set via JTextPane.setBackground().
>> 
>> CI all test run is green.
>
> 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?

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

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


More information about the swing-dev mailing list