On my Ubuntu box, I installed the City input method (http://docs.oracle.com/javase/1.5.0/docs/guide/imf/spi-tutorial.html) by copying the CityIM.jar file to jre/lib/ext of my jdk. Then launch a swing application (for exampe freeMind), putting focus on a text field, opening the system menu of the application, but I don’t see any “Select Input Method” menu item on that menu as said in http://docs.oracle.com/javase/1.5.0/docs/guide/imf/spi-sample/CityIM.html
Do you have any idea why I can see that menu item? Thanks.
Environment info:
- Ubuntu desktop
- Jdk 1.6.0_21 “standalone” e.g. the bundle downloaded directly from
Oracle site, not the jdk install via ubuntu apt-get
This is a feature of some java environments, that the system menu does not include the Select Input Method item. For example Linux, Solaris, applets inside a browser. There is an article about it at javadesktop.org:
Input Method Selection by a Hot Key.
For all platforms there is a possibility to have a hotkey triggering input method selection menu, so for Ubuntu this is the only way of setting it. In the article mentioned they offer
InputMethodHotKey.jar, which is a nice gui for configuring this hotkey. I verified, it works on Debian.