JDK-4807138 : IME2002 language bar disappears when Input Method is enabled on JTextField.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt:i18n
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2003-01-23
  • Updated: 2004-05-03
  • Resolved: 2004-05-03
Related Reports
Duplicate :  
Description

Name: rl43681			Date: 01/23/2003


FULL PRODUCT VERSION :
JDK1.4.1_01
        java version "1.4.1_01"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
        Java HotSpot(TM) Client (build 1.4.1_01-b01, mixed mode)
JDK1.3.1_06
        java version "1.3.1_06"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_06-b01)
        Java HotSpot(TM) Client (build 1.3.1_06-b01, mixed mode)
JDK1.3.1_04
        java version "1.3.1_04"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_04-b02)
        Java HotSpot(TM) Client (build 1.3.1_04-b02, mixed mode)
JRE1.2.2_014
        Classic VM(buildid JDK-1.2.2_014, native threads, symcjit)
JDK1.2.2_009
        Classic VM(buildid JDK-1.2.2_009, native threads, symcjit)

FULL OPERATING SYSTEM VERSION :
Microsoft Windows 2000 [Version 5.00.2195]
ServicePack 3

A DESCRIPTION OF THE PROBLEM :
On Windows2000+SP3 (Japanese), IME2002 language bar disappears when Input Method is enabled on JTextField or TextField. It does not seem to depend on the kind of the top level window. In our tests, the same behaviors are seen with JTextField on JFrame, JDialog or JWindow. If we use IME2000 instead of IME2002, language bar behaves correctly, but it will not be acceptable for some users to downgrade their IMEs.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install MS IME2002 (Japanese) and JRE1.4.1_01 on Windows 2000+SP3 (Japanese)
   cf. MS IME2002 is bundled with Microsoft Office XP
2. Compile the attaced sample code IME2002Test.java
3. Start the program by the following command:
   java -cp . IME2002Test
4. Move the cursor onto JTextField and click it
   See IME language bar is shown on the desktop
   -> If not, change the settings of the bar to make it shown on the desktop
5. Hit Kanji key to enable Input Method

EXPECTED VERSUS ACTUAL BEHAVIOR :
[Expected Result]
IME language bar is shown after Input Method is enabled on JTextField

[Actual Result]
IME language bar disappears after Input Method is enabled on JTextField

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class IME2002Test extends JFrame implements ActionListener {
	JTextField textF;

	public IME2002Test() {
		textF = new JTextField(20);
		getContentPane ().add (textF, BorderLayout.CENTER);
		JButton b1 = new JButton ("Dialog");
		b1.addActionListener (this);
		getContentPane ().add (b1, BorderLayout.SOUTH);
		add(b1, BorderLayout.SOUTH);
		pack();
		show();
	}

	public void actionPerformed (ActionEvent ev){
		JDialog d = new JDialog ();
		d.setModal(true);
		Container c = d.getContentPane ();
		c.add ( new JTextField(20) );
		d.pack ();
		d.show ();
	}

	public static void main(String[] args) {
		IME2002Test imet = new IME2002Test();
	}
}
---------- END SOURCE ----------

CUSTOMER WORKAROUND :
Use IME2000 instead of IME2002
(Review ID: 180306) 
======================================================================

Comments
EVALUATION This problem is pretty much similar to the one in 4622023, which seemed to be a bug in Windows XP module. Asking customer whether the same workaround can be applied (minimize the IME bar). ###@###.### 2003-01-24 Closing as a duplicate of 4622023. ###@###.### 2004-05-03
24-01-2003