I want to use Robot class in java applet for web browser to move and click mouse

后端 未结 2 1852
旧时难觅i
旧时难觅i 2021-01-13 22:43

I have created this applet, It moves mouse to 1000 pos on screen. It works as application but it does not work in applet. I have created signed applet but still it wont move

相关标签:
2条回答
  • 2021-01-13 23:39

    I've checked the source-code from Robot. And I think you have to add in the constructor a ScreenDevice.

    0 讨论(0)
  • 2021-01-13 23:41

    Signing alone won't give your Applet any permissions. You need to grant the createRobot permission to your Applet.

    Check the security tutorials for more details.

    0 讨论(0)
提交回复
热议问题