Internationalization Previous
Previous
Welcome
Welcome
Next
Next

SampleIME Applet Demo

SampleIME is a class used in this sample which demonstrates how to use the DefaultInputManager and InputMethodListener interfaces to implement an Input Method Editor (IME) using the Microsoft VM. The sample IME provided in this sample allows users to input Unicode characters by typing the hexadecimal value of the characters. It is a language-independent IME to be used on top of any localized systems that has the Microsoft VM installed.

In this sample, you can use the TextArea and TextField fields to input characters. When you want to activate the Sample IME, click the button which reads "Click here to activate Sample IME."

Type in any Unicode value that matches the default font provided on your system. For example, if you type '41' and press Enter, you should see an 'A' appear in the TextField field. In this case, 0x41( hexadecimal value ) is the Unicode represenation of 'A'. If you are using a CJK(Chinese, Japanese and Korean) version of Microsoft Windows, you could input CJK characters by typing their Unicode value. For example, if you type '4e00', you should see the Chinese character "yi". You can find the table mapping characters to Unicode values in the Unicode Specification 2.0.

BackSpace can be used for any corrections needed.

If no characters appear in the TextField, please make sure that the input focus is on the TextField. You can do so by clicking on the TextField.

Use the button on the left of the IME to activate and deactivate the IME. You can use the mouse on the area around the button to click and drag the IME composition window around.

You can use Ctrl-Alt to change between different Java-based IMEs. In this example, there is only one Java IME; therefore, pressing Ctrl-Alt will activate or deactivate the Sample IME. If you are running this under CJK versions of Windows, pressing Ctrl-Alt the first time will switch to the system IME, and pressing it again will deactivate both the system IME and Sample IME. If you press Ctrl-Alt again, the Sample IME will be activated.


In order to use this sample, please disable or turn off your Windows system IME. For example, under Japanese Windows, please select 'Direct Input' mode. Under Chinese Windows, please turn off the system IME. After you click the "click here to activate Sample IME" button, you must make sure the caret is on the TextField or TextArea to start using Sample IME. Please see descriptions above for more information.



Source:
SampleIMETest.java

Top © 1996-1997 Microsoft Corporation. All rights reserved.