United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8016833 : Underlines and strikethrough not rendering correctly

Details
Type:
Bug
Submit Date:
2013-06-18
Status:
Resolved
Updated Date:
2014-02-12
Project Name:
JDK
Resolved Date:
2013-08-06
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6u45,7u21,8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
In a styled document superscripted text underlines and strikethrough lines are painted lower than expected.
                                    

Comments
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/27d1bdf2f7d9
User:  lana
Date:  2013-08-13 18:14:45 +0000

                                     
2013-08-13
URL:   http://hg.openjdk.java.net/jdk8/awt/jdk/rev/27d1bdf2f7d9
User:  mcherkas
Date:  2013-08-06 14:19:25 +0000

                                     
2013-08-06
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
Testcase
                                     
2013-06-18
P4 as a test bug
                                     
2013-06-18



Hardware and Software, Engineered to Work Together