Maintenance Notice

The bugs.java.com site will be undergoing maintenance on 15th Dec 2017 21:00 PST to 16th Dec 2017 1:00 AM PST.
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u71Fixed 7u60Fixed 8 b103Fixed
Related Reports
Relates :  
Description
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.
2013-06-21

P4 as a test bug
2013-06-18

Testcase
2013-06-18