import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;

class MiMouseMotionAdapter extends MouseMotionAdapter {   
	private MouseFrame frame;
	
	public MiMouseMotionAdapter (MouseFrame frame) {
		this.frame = frame;
	} 
	
	public void mouseMoved (MouseEvent event) {
		frame.info.setText ("Ratón en (" 
				+ event.getX() + "," + event.getY() + ")");
	}
}