Java: Add a Global Mouse Listener

2020-04-16 05:38发布

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 applet 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.

1条回答
倾城 Initia
2楼-- · 2020-04-16 06:28

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

查看更多
登录 后发表回答