How can I write to the cursor position without generating mouse events? I have tried using the Robot-class, which can generate mouse events, but if there are queued mouse movement events, I have problems detecting which event not to process. Is it perhaps possible to let my mouseMoved()-method force an mouse move event to be processed before those in the queue?
Just requestFocus() for the component that you want. Or are you trying to accomplish something else?
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Dec 04, 2002
I want to set the cursor position! It is possible to do so with the Robot-class method: moveMouse( x,y), but it generates AWT-events. I have found a way to get around the event-problems, so I'll settle for using the Robot-class, since I now assume there isn't any way to directly setting the cursor position.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com