import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

class MiMouseAdapter extends MouseAdapter {
	private MouseFrame frame; 
	
	public MiMouseAdapter (MouseFrame frame) {
		this.frame = frame;
	}
	
	public void mouseClicked (MouseEvent event) {
		frame.info.setText ("Ratón pulsado en (" 
				+ event.getX() + "," + event.getY() + ")"); 
	} 
	
	public void mouseEntered (MouseEvent event) {
		frame.info.setText ("El ratón entró en la ventana"); 
	} 
	
	public void mouseExited (MouseEvent event) { 
		frame.info.setText ("El ratón salió de la ventana"); 
	}
} 