Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6427770

JLabel with HTML no longer displays non-spacing characters under 1.5.0_06

XMLWordPrintable

    • b03
    • 6
    • b03
    • x86
    • windows_xp
    • Verified

        FULL PRODUCT VERSION :
        Java Web Start 1.5.0_06
        Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]

        A DESCRIPTION OF THE PROBLEM :
        When I use HTML formatting in the text of a JLabel that includes a non-spacing character, the diacritic no longer shows under 1.5.0_06. This showed correctly under 1.5.0_04.

        This part of our application is used to enter system diacritic characters. We use the html formatting to distinguish the diacritic the user is entering vs the sample character it will be placed over/under.

        jlabel.setText ("<html><font color='#AFA081'>o</font>\u0300");

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        jlabel.setText ("<html><font color='#AFA081'>o</font>\u0300");
                        

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        on 1.5.0_04 this showed a light brown "o" with a black diacritic (Combining Grave Accent)
        ACTUAL -
        on 1.5.0_06 this shows only the light brown "o" with no diacritic (Combining Grave Accent)

        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        do not use html formatting

        Release Regression From : 5.0u4
        The above release value was the last known release where this
        bug was known to work. Since then there has been a regression.

              gsm Sergey Groznyh (Inactive)
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: