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

IME Composition Window is displayed at incorrect location

    Details

    • Subcomponent:
    • Resolved In Build:
      b124
    • CPU:
      x86_64
    • OS:
      windows_7

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.8.0_65"
        Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
        Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Windows 7 SP1

        A DESCRIPTION OF THE PROBLEM :
        When to input text in javax.swing.JEditorPane component of active client through IME, composition Windows is displayed at the bottom right corner of the desktop. For some of the input methods, the bug only occurs in the firstly entered character after focus is gained by the client.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        1. Execute a simple active java swing program containing a JEditorPane component.
        2. Switch the input keyboard to one that provides input method editor (IME), e.g. Chinese-Taiwan CangJie
        3. Type any text into the JEditorPane through IME

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        The IME composition window should be displayed below the input caret.
        Java UI component such as JTextField and JTextArea display the IME windows correctly and which can be used as comparison.
        ACTUAL -
        The IME composition window is displayed at the lower right corner of the whole screen.

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        package test;

        import javax.swing.JEditorPane;
        import javax.swing.JFrame;

        public class IMETest {

        public static void main(String[] args) {
        JFrame myFrame = new JFrame("IME Test");
        myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        myFrame.setSize(300,200);

        JEditorPane myPane = new JEditorPane();

        myFrame.setContentPane(myPane);
        myFrame.setVisible(true);
        }

        }

        ---------- END SOURCE ----------

        1. expected.png
          28 kB
        2. input_method_setting.png
          35 kB
        3. screen_capture.png
          1.32 MB

          Issue Links

            Activity

            Hide
            ssadetsky Semyon Sadetsky added a comment - - edited
            The used IME library is not specified.
            Cannot reproduce with Chinese IME.

            Request is sent to the reporter.
            Show
            ssadetsky Semyon Sadetsky added a comment - - edited The used IME library is not specified. Cannot reproduce with Chinese IME. Request is sent to the reporter.
            Hide
            ssadetsky Semyon Sadetsky added a comment -
            Got reply from the reporter. He used Windows IME not Java IME. Also screenshots was attached.
            Show
            ssadetsky Semyon Sadetsky added a comment - Got reply from the reporter. He used Windows IME not Java IME. Also screenshots was attached.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/8d42ecfa68a3
            User: ssadetsky
            Date: 2016-05-30 07:51:09 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/8d42ecfa68a3 User: ssadetsky Date: 2016-05-30 07:51:09 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/8d42ecfa68a3
            User: lana
            Date: 2016-06-22 19:53:10 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/8d42ecfa68a3 User: lana Date: 2016-06-22 19:53:10 +0000

              People

              • Assignee:
                ssadetsky Semyon Sadetsky
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: