Taken from this site .取自本网站 。Since Swing uses AWT under the hood, don't let that awt part bother you.由于摇摆引擎盖下使用AWT,不要让awt部分打扰你。
解决方案2
0 2012-01-07 01:35:08
According to this , the ability for Java to detect any mouse button other than right, left, and middle click was added in Java 7. In all previous versions, you can't.根据此 ,Java的检测能力比对其他任何鼠标按钮,向左和Java 7已经加入中间点击在所有以前的版本,你不能。:-(:-(