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

Wrong position of spaces in JTextField when entering Korean text on Ubuntu 16



      When using Hangul input method on Ubuntu 16, space characters are not entered in expected places.

      For example, when entering in a JTextField: ‘하나 ’

      On Ubuntu 16, the actual contents of text field are: ‘하 나’
      (space is between blocks, not after them).

      Whereas, on Ubuntu 14, we see correct contents of text field: ‘하나 ’
      (with space after blocks, as expected).

      The issue occurs only with Java applications on Ubuntu 16. The issue is not reproduced on Ubuntu 14, nor with native applications (e.g. gedit) on either Ubuntu version.

      To reproduce:
      1. Compile and run the attached example.
      2. Switch to Hangul input method,
      3. Press Shift+Space to activate Hangul input, and
      4. Press G, K, S, K (on standard English keyboard) and then press Space.
      (Don't press Shift, just the keys as if typing in lower case.)


        1. JTextField - 16.png
          4 kB
          Alexey Ivanov
        2. JTextField - 18.png
          6 kB
          Alexey Ivanov
        3. JTextFieldTest.java
          1 kB
          Alexey Ivanov
        4. korean.png
          279 kB
          Prasanta Sadhukhan
        5. ub16.log
          2 kB
          Alexey Ivanov
        6. ub18.log
          2 kB
          Alexey Ivanov

          Issue Links



              • Assignee:
                aivanov Alexey Ivanov
                shadowbug Shadow Bug
              • Votes:
                0 Vote for this issue
                6 Start watching this issue


                • Created: