How to send a KeyEvent to an input method

Hello

i am feeling a little bit lost at the moment. For an application i need to send key events to a text field (just like a normal keyboard). But if i i try to send KeyEvent's nothing happens with an enabled IM. Do i understand it correct that i have to create an InputMethodEvent to send a char to the IM? If yes, how to i work with this AttributedCharacterIterator?

At the moment the Active-Client-Sample confuses me rather more than it helps.

Thanks

Matt

[494 byte] By [FKAMattHHDEa] at [2007-10-3 6:35:05]
# 1

OK, i just found the Robot-Class and i am now able to post the necessary events. Unfortunally, it does not work when the Korean Hanja IME is active!? Normally the letters 'r' 't' shall produce another, single one (ㄳ). It works, when i work with a keyboard, but it does not work when i use the Robot to send native events to the system. It produces ㄱ ㅅ .Why?

Thanks

Matt

FKAMattHHDEa at 2007-7-15 1:23:01 > top of Java-index,Desktop,I18N...
# 2
No one has an idea?
FKAMattHHDEa at 2007-7-15 1:23:01 > top of Java-index,Desktop,I18N...