You can't send a message 'like' WM_SETTEXT to a Java app, Java either uses the windows framework on Windows, or I suspect you're screwed. I'd have expected Java on Windows to use the windows framework, you can use Spy++ to tell if this is true or not. If it's not, then I doubt you can do it at all.