JDK-4040458 : Need input method support for lightweight components
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt:i18n
  • Affected Version: solaris_2.6,1.1.2,1.1.3,1.1.6,1.2.0
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS:
    generic,solaris_2.5,solaris_2.5.1,solaris_9,windows_95,windows_nt generic,solaris_2.5,solaris_2.5.1,solaris_9,windows_95,windows_nt
  • CPU: generic,x86,sparc
  • Submitted: 1997-03-21
  • Updated: 2023-07-29
  • Resolved: 1998-08-14
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.
Other
1.1.6 1.1.6Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
				!!!NOTE!!!
    THIS FEATURE REQUEST (I.E., RFE) HAS BEEN INTEGRATED TO
    JDK1.1.6. PLEASE DO *NOT* ADD BUG REPORTS ON THE NEW FEATURE TO THIS
    BUG REPORT. THANKS!



[richie: 6/27/97]

More info from Oracle. 

We are trying to input Japanese characters using IME. Our code for displaying 
Japanese Kanji characters worked fine with JDK 1.1FCS, but from JDK 1.1.1FCS 
onwards, it has been broken. The problem is that in JDK 1.1.x, the KEY_TYPED 
event is not being generated by the AWT when Kanji characters are being input 
thru IME. With JDK 1.1, a KEY_TYPED event would be generated for each of the 
Kanji characters. 

JDK version: 1.1.1FCS (can also be reproduced with 1.1.2FCS, 1.1.3B, 1.1.3E) 
The problem does NOT occur with JDK 1.1FCS. 
 
OS: Windows NT 4.0 Workstation 
 

Sample code (attached as well): 
 
------------------------------------------------------------------ 
/* 
	IMETest.java 
	Test case for the JDK 1.1.1 bug with IME on Windows NT 4.0. 
 
	Bug: 
	AWT Component events are not being sent properly in JDK 1.1.1 
	when you try to input Japanese Kanji characters thru IME 
	on Windows NT 4.0. 
 
	How to run the test: 
	Run IMETest.class. A blank window will be displayed. 
	Type some characters using IME. 
	Watch the System output for info on what KeyEvent is 
	being delivered to the Canvas. 
	When you type some Kanji into IME and hit the final input 
	confirmation key (i.e. Enter), 
	  - with JDK 1.1, you will get a KEY_TYPED event 
		for each Kanji character. 
	  - with JDK 1.1.1, you get *no* KEY_TYPED events 
		for the Kanji characters. 
	You will not see any output inside the window; 
	refer to the System output. 
	 
	Oracle bug #: 508469 (also see 494701) 
 
	James Seo. 
	Oracle Corp. 
*/ 
 
import java.awt.*; 
import java.awt.event.*; 
 
public class IMETest 
{ 
	public static void main(String[] args) 
	{ 
		Frame f = new Frame("IME Test"); 
		Label l = new Label("Enter characters & watch the System 
output."); 
		Canvas c = new Canvas(); 
 
		f.setLayout(new BorderLayout()); 
		f.add("Center", c); 
		f.add("North", l); 
		f.setSize(300,100); 
		f.show(); 
		c.requestFocus(); 
		c.addKeyListener(new CanvasListener()); 
	} 
} 
 
class CanvasListener implements KeyListener 
{ 
	public void keyPressed(KeyEvent e) 
	{ 
		System.out.println("IMETest: " + e); 
	} 
	public void keyReleased(KeyEvent e) 
	{ 
		System.out.println("IMETest: " + e); 
	} 
	public void keyTyped(KeyEvent e) 
	{ 
		System.out.println("IMETest: " + e); 
	} 
} 


[7/2/97 koji]

On the solaris version, it didn't work even if it was on JDK1.1.


==========================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.1.6 FIXED IN: 1.1.6 INTEGRATED IN: 1.1.6
14-06-2004

EVALUATION [joconner 11/13/97] I'll update the Win32 awt_Component to allow this in 1.1.6. For Solaris, we're addressing this by backporting parts of the JDK 1.2 input method framework. norbert.lindenberg@Eng 1997-12-04
04-12-1997