用事件处理呀,public interface MouseListener 
extends EventListener 
The listener interface for receiving mouse events on a component. 
-------------------------------------------------------------------------------- 
 mouseClicked(MouseEvent) 
Invoked when the mouse has been clicked on a component. 
 mouseEntered(MouseEvent) 
Invoked when the mouse enters a component. 
 mouseExited(MouseEvent) 
Invoked when the mouse exits a component. 
 mousePressed(MouseEvent) 
Invoked when a mouse button has been pressed on a component. 
 mouseReleased(MouseEvent) 
Invoked when a mouse button has been released on a component. public interface MouseMotionListener 
extends EventListener 
The listener interface for receiving mouse motion events on a component. 
-------------------------------------------------------------------------------- 
 mouseDragged(MouseEvent) 
Invoked when a mouse button is pressed on a component and then dragged. 
 mouseMoved(MouseEvent) 
Invoked when the mouse button has been moved on a component (with no buttons no down).