JDK-8147842 : IME Composition Window is displayed at incorrect location
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6,7,8,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2016-01-14
  • Updated: 2018-08-24
  • Resolved: 2016-05-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8 JDK 9 Other
6u151Fixed 7u141Fixed 8u131Fixed 9 b124Fixed openjdk7uFixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
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 ----------


Comments
Got reply from the reporter. He used Windows IME not Java IME. Also screenshots was attached.
01-02-2016

The used IME library is not specified. Cannot reproduce with Chinese IME. Request is sent to the reporter.
29-01-2016