Java 鼠標座標顯示事件監聽MouseMotionListener

1、定義鼠標的座標  當鼠標移動時發生顯示事件 方法摘要  void mouseDragged(MouseEvent e)           鼠標按鍵在組件上按下並拖動時調用。  void mouseMoved(MouseEvent e)           鼠標光標移動到組件上但無按鍵按下時調用。   1 public class TestKeyAndMouse extends Frame
相關文章
相關標籤/搜索