home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 14 / IOPROG_14.ISO / soft / sdkjava / sdkjava.exe / SDKJava.cab / Samples / i18n / SampleIME / Readme.txt < prev    next >
Encoding:
Text File  |  1998-03-05  |  2.8 KB  |  78 lines

  1. README.TXT
  2.  
  3. SampleIME is a sample class which demostarates how to use DefaultInputManager and
  4. InputMethodListener interface to implement an IME in Microsoft VM. SampleIME
  5. allows users to input unicode characters by typing the hexadecimal value
  6. of the unicode characters.
  7.  
  8. To Compile SampleIME
  9. ====================
  10. To compile this example, just compile all of the *.java files. You
  11. could type the following under DOS prompt if Microsoft SDK for Java
  12. is installed:
  13.  
  14. jvc *.java
  15.  
  16. To Run SampleIME
  17. ================
  18. To run SampleIME, please compile all the *.java file. You could 
  19. use the following under DOS prompt to start this example:
  20.  
  21. jview SampleIMETest.class
  22.  
  23. Or you could run it from Internet Explorer, open the
  24. following file using IE:
  25.  
  26. Sample.html
  27.  
  28. To Use SampleIME
  29. ================
  30. When this example is started, you could use TextArea and TextField 
  31. as normal. When you want to use SampleIME, click on the button which
  32. says "Click here to activate SampleIME."
  33.  
  34. After doing so, you could click on the TextFields again,
  35. , type '41', and press Enter. You should see an 'A' appearing on
  36. the TextField, because 0x41( hexadecimal value ) is the unicode
  37. represenation of 'A'. If you are using a FarEast version of Windows,
  38. you could input CJK characters by typing their unicode value.
  39. For example, if you type '4e00', you should see
  40. the Chinese character "one".
  41.  
  42. As you type along, you will find the IME will move the composition
  43. window to the lower right corner of the input caret. This is called
  44. IME level 2 ( near-caret ) support.
  45.  
  46. Only digit 0 to digit 9, and 'a' through 'f' are accepted for this IME.
  47. Those characters which are not accepted by the IME will appear on the TextFiled.
  48. If you type something wrong on the IME, you could use BackSpace to 
  49. correct them.
  50.  
  51. If there are no characters appearing on the TextField, please make
  52. sure that the input focus is on the TextField. You could do so by
  53. clicking on the TextField.
  54.  
  55. There is a button on the left of the IME which is used to activate/
  56. deactivate the IME. Besides, you could use mouse to click on the window
  57. of IME except the button area to drag the IME around.
  58.  
  59. Toggle IMEs
  60. ===========
  61. You could use Ctrl-Alt to toggle between different Java-based IMEs. In this 
  62. example, there is only one Java IME, therefore, pressing Ctrl-Alt will 
  63. activate/deactivate SampleIME. If you are running this under Far East 
  64. version of Windows, pressing Ctrl-Alt for the first time will switch to 
  65. system IME. And pressing it again will deactivate both system IME and
  66. SampleIME. If you press Ctrl-Alt again,SampleIME will be activated.
  67.  
  68. File List
  69. =========
  70.  SampleIME.java
  71.     The IME itself. 
  72.  SampleIMEWindow.java
  73.     The composition window.    
  74.  SampleIMETest.java
  75.     The sample application which uses SampleIME.
  76.  SampleIMETestFrame.java
  77.     The Frame used by sample application.
  78.