|
Java™ by example!
|
|
|
How do I generate a mouse event programatically?
In JDK 1.3, you can use the Robot class, very useful for testing purposes. Following example creates a JFrame with a button and left clicks in the center.
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|