JDK-4161830 : Swing text components dont correctly line break for Japanese
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris_2.5
  • CPU: generic
  • Submitted: 1998-07-30
  • Updated: 2003-04-16
  • Resolved: 2003-04-16
Related Reports
Relates :  
Description
The swing text package's LabelView.java and Utilities.java do line breaking by looking for whitespace characters.  This is an i18n no-no.  In particular, it won't work for Japanese where there are no whitespace characters but definiate rules about where breaks are legal.

Comments
EVALUATION Name: pzR10082 Date: 04/16/2003 This has been fixed by introducing MultiByteProperty in AbstractDocument. This property is set automatically if Document contains multibyte characters. Currently (as of 1.5.0) we use BreakIterator for line breaks if MultiByteProperty is set on the Document. ###@###.### ======================================================================
24-08-2004