<Swing Dev> [13] RFR JDK-8219156: RTFEditorKit writes background color but doesn't read

Prasanta Sadhukhan prasanta.sadhukhan at oracle.com
Tue Feb 19 11:23:15 UTC 2019


Hi All,

Please review a fix for an issue where it is seen that JTextPane with 
RTFEditorKit writes background color for specific word into rtf file but 
doesn't read it. So, if yellow background color is set, it will read 
default white background.

This is because RTFReader#AttributeTeackingDestination.handleKeyWord() 
does not handle "cb" keyword which is Font(character) formatting 
property for background color
as per http://www.biblioscape.com/rtf15_spec.htm.
Fix is to make it handle "cb" keyword.

Bug: https://bugs.openjdk.java.net/browse/JDK-8219156
webrev: http://cr.openjdk.java.net/~psadhukhan/8219156/webrev.0/

Regards
Prasanta

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20190219/5c9fc458/attachment.html>


More information about the swing-dev mailing list