mouseevent - JAVA - Get mouse location when mouse is clicked -
i need absolute location of mouse after click on screen. i've searched on web solution have found uses method:
mouseinfo.getpointerinfo().getlocation()
which gets position independently click.
otherwise, have use eventlistener
check out when mouse clicked, problem listeners related component, while need absolute location.
how can solve this?
this os dependent feature. far understand question, don't have gui or don't want add listener gui components. jvm receive clicks components related it.
here have write native code hook events want on own, or should use library jnativehook same thing , don't need write code linux, mac os x , windows.
Comments
Post a Comment