JDK-8016833 : Underlines and strikethrough not rendering correctly
Type:Bug
Component:client-libs
Sub-Component:javax.swing
Affected Version:6u45,7u21,8
Priority:P4
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2013-06-18
Updated:2014-03-11
Resolved:2013-08-06
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
In a styled document superscripted text underlines and strikethrough lines are painted lower than expected.
Comments
On 20.06.2013 18:57, Alexander Scherbatiy wrote:
It seem that there is the same problem with the background color:
Style style = comp.addStyle("underlined superscript", null);
StyleConstants.setBackground(style, Color.BLUE);
...
doc.insertString(doc.getLength(), "hello", style);
because paint(Graphics g, Shape a) method in GlyphView uses the alloc.height in the same way.