在整个系统上听到鼠标点击(不在JFrame等) [英] Listen to mouse clicks on whole system (not on a JFrame etc.)

查看:169
本文介绍了在整个系统上听到鼠标点击(不在JFrame等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个对鼠标点击有反应的小代码。但是,似乎唯一的方法是收听Java组件的点击。

I want to write a little code which react to a mouse click. But it seems the only way is to listen to clicks on Java components. A direct listener to all clicks would be great.

实际上是否有可能在Java中实现这一点?

Is there actually a possibility to implement this in Java?

提前感谢!

更新:

发现

有关
的更多信息 http://www.jotschi.de/?p=90

最好的问候,
fnst

Best regards, fnst

推荐答案

不要这样想,因为你在运行沙箱。

Don´t think so, because of the sandbox you´re running in.

这篇关于在整个系统上听到鼠标点击(不在JFrame等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆