我写过一个,不过好像用的是C++然后借助JNI调用的。

解决方案 »

  1.   

    java中有个机器人类,Robot类,你可以自己查help doc.
      

  2.   

    component.dispatchEvent(new MouseEvent(component,
                                                     eventID,
                                                     e.getWhen(),
                                                     e.getModifiers(),
                                                     componentPoint.x,
                                                     componentPoint.y,
                                                     e.getClickCount(),
                                                     e.isPopupTrigger()));
    看看这样委派事件行不行?