实现监听接口 鼠标移动要实现MouseMotionListener 如果实现MouseListener就是监听鼠标的点击释放和进入离开 一定要add listener 不然没有监听的对象,就不会有监听事件发生!