Pass mouse events to applications behind from a Java UI

前端 未结 4 429
无人共我
无人共我 2021-01-03 08:11

The question I have is exactly same in requirement as How to pass mouse events to applications behind mine in C#/Vista? , but I need the same for a Transparent Java UI. I ca

4条回答
  •  一生所求
    2021-01-03 08:39

    You could try using the Robot Class http://java.sun.com/javase/6/docs/api/java/awt/Robot.html which allows you to specify system events to the low level operating system, specifically things like mouse events.

提交回复
热议问题