JDK-8029248 : Layout problem on Exception site list dialog in ja, ko, de, es, fr, pt_BR
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2013-11-27
  • Updated: 2014-09-02
  • Resolved: 2014-03-12
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.

To download the current JDK release, click here.
8u20 b06Fixed 9Fixed
This problem was found in g11n internal testing and does not happen in promoted build so far. It will happen in promoted build when JDK-8028410 is integrated.

Open Java control Panel and invoke Exception Site List dialog in security tab. There is text truncation in Japanese. Please refer to the screenshot.

With further check, it's found that the problem happens in many locales.

        { "jcp.exception.list.detail", "FILE and HTTP protocols are " +
          "considered a security risk.\n" +
          "We recommend using HTTPS sites where available." },

The second line is "We recommend using HTTPS sites where available." 

In de, es, fr, ja, ko, pt_BR, the first line is very long that it's wrapped in the dialog. There is no space to display the second line. It's totally missing.

Please refer to the attached screen shot.

Besides, in de, the translation of 

        { "jcp.exception.list.add.text",
          "Click Add to add an item to this list." },

is very long, that it's truncated in list.

Verified in b22. http://bej301328.cn.oracle.com/gatejava/test/jdk/results/8u20/b22/jre-x86-offline.html

You should see all the text in HTTP/FILE description at the bottom of the Exception site list dialog after JDK-8038463 is integrated. I'd propose to return the new line character in all the locales.

After the fix, there is the truncation in English dialog. Please refer to the screenshot exceptionsitelist_en.png. I will verify the dialog in other locales after the message drop in 8u20, because the localized messages are not changed so far.

just remove newline in resource webrev: http://oklahoma.us.oracle.com/www/webrevs/aherrick/1.9.0/8029248/deploy/webrev/ crucible review: https://java.se.oracle.com/code/cru/CR-JDK9CLIENT-85#CFR-22829

The problem is due to class JSmartTextArea not properly computing the height when string contains newline characters. Solution is either to just remove the newline (then second sentence will not start on a new line) or using two separate text areas in a panel.

This should be corrected for 8u20, but is not a critical problem as the same text is displayed to the user in a separate dialog when the URL is first entered.