Hmms, I think the Robot class is not the right way for the problem described. The Robot will move the mouse cursor to the new position, that's right, but whenever you stop using the Robot and the user is pushing the mouse a little bit - the cursor is usually going back to the original position that it had before the move.
So the move seems not what would be required here. Anyways, in my opinion, pointer moves (i.e. to the dialog boxes to position them over an OK button) should be only done by the operating system or the window manager. I would like to have full control over what the mouse pointer is doing on my screen (and it should behave in all applications the same manner). Nothing is more annoying than having one application in which the mouse pointer is following the OK buttons of dialogs and in another (perhaps even written in java) - it is not doing that. Either you do it in all programs the same way or you forget it. Consistency is the goal to success in my opinion. Karsten > Hello. > > The java.awt.Robot class has a mouseMove(int, > int) method that will move your mouse pointer to the > specified coordinates. > > In using it, you will have to catch any > AWTExceptions that occur upon instantiation. The > applet may also throw a SecurityException if you don't > have the proper permissions. > > Cromwell > > __________________________________________________ > Do You Yahoo!? > Make a great connection at Yahoo! Personals. > http://personals.yahoo.com > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA2D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". -- Karsten Trott Technical Lead, Intuitive Design Interface , Get2Chip.com, Inc. Staff R&D Engineer Phone: +49-89-5908-2333 Fax: +49-89-5908-1328 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
