United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7124316 [macosx] Passive and Peered IMF Client does not cope with input methods
7124316 : [macosx] Passive and Peered IMF Client does not cope with input methods

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2012-10-04
Project Name:
JDK
Resolved Date:
2012-03-19
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt:i18n
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4

Related Reports
Relates:

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-604 submitted 2011/10/25 by Naoto Sato
Demo program in the Input Method Framework does not work as expected. Here is how to reproduce the issues:
1) Download the demo source files from <span class=&quot;nobr&quot;><a href=&quot;http://download.oracle.com/javase/7/docs/technotes/guides/imf/api-tutorial.html#Sample%20Code&quot;>http://download.oracle.com/javase/7/docs/technotes/guides/imf/api-tutorial.html#Sample%20Code<sup><img class=&quot;rendericon&quot; src=&quot;/jira/images/icons/linkext7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/></sup></a></span>
2) Compile those java files
3) run &quot;java IMFDemo&quot;
4) Click on &quot;Lightweight component, passive client&quot; and perform inputting with input methods, but it does not accept the result text (issue 1).
5) Click on &quot;Peered component&quot; and perform inputting with input methods, but it does not allow on-the-spot style editing, and the result text cannot be input in the edit component (issue 2).
While the &quot;issue 1&quot; can be observed with the Apple's JDK6, &quot;issue 2&quot; is the regression from JDK6 (it works correctly on JDK6).

                                    

Comments
EVALUATION

Fix is pushed to workspace jdk4u-osx.
                                     
2012-01-26
EVALUATION

Previous fix affects only limited set of locales. New fix is ready for review that should forward all the relevant events to the text peer's delegate.
                                     
2012-01-23
EVALUATION

Looks like we need to explicitly enable the Input Methods for the peered components in the LWCToolkit class bu overriding the 
public boolean enableInputMethodsForTextComponent() method to always return true. After that IM starts working.
                                     
2011-12-27



Hardware and Software, Engineered to Work Together