Search code examples
javamousemouseeventmouseclick-event

Performing a left click at a pre-defined coordinate, in java


I would like to perform a left click at a pre-defined coordinate with java. Is there a library for this task ?

Please notice that I do not want to implement a listener to see who performs a mouse click where in my application or anything of that sort, I simply would like to perform a mouse click.

Thank you.


Solution

  • There is no need for an external library, when java.awt.Robot can do it for you.