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

IME Composition Window is displayed at incorrect location

XMLWordPrintable

    • b124
    • x86_64
    • windows_7

        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
            expected.png
            28 kB
          2. input_method_setting.png
            input_method_setting.png
            35 kB
          3. screen_capture.png
            screen_capture.png
            1.32 MB

              ssadetsky Semyon Sadetsky (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: