开发者

Java: Add a Global Mouse Listener

开发者 https://www.devze.com 2023-02-04 02:10 出处:网络
I am developing a virtual keyboard using java applet. How do I set global mouse listener, so that I can get all mouse events inside my appl开发者_运维知识库et even if my applet is not the active windo

I am developing a virtual keyboard using java applet. How do I set global mouse listener, so that I can get all mouse events inside my appl开发者_运维知识库et even if my applet is not the active window. And is there any way to get the focussed textbox globally, so that I can feed input to that textbox from my virtual keyboard. Thanks.


You need to make a hook for that you need native code for windows machine take a look here

0

精彩评论

暂无评论...
验证码 换一张
取 消