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

JTextArea.setWrapStyleWord() cannot handle the composed string properly

XMLWordPrintable

    • tiger
    • generic, x86
    • generic, linux
    • Verified

      Reproduction:

      - Extract the attached test case, JTextAreaTest.java.
      - Compile and Execute the test case.
        % java JTextAreaTest

      The test case includes one line sentence which is composed of 1 byte characters
      and 2 bytes characters but the word-wrapping is an unnatural. It should be
      wrapped one character at a time in Japanese. And also the location of the caret
      which pointed by mouse on the place wrapped and no characters is actually on the different place.

      ###@###.### 2001-10-03

            peterz Peter Zhelezniakov
            kurosaki Kenichi Kurosaki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: