codice:
import java.awt.*;

public class prova2 extends java.applet.Applet {
  public boolean mouseDown(Event e, int a, int b) {
    Graphics g=getGraphics();

    g.fillRect(a-2,b-2,4,4);
     
  return true;
  }

  public void paint(Graphics g) {
    int x,y;
  for(x=0; x<=200; x=x+10) {
      g.drawLine(x, 0, x, 200);
    }
for(y=0; y<=200; y=y+10) {
      g.drawLine(0, y, 200, y);
    }
  }
ora... come posso fare, per togliere con il click del tasto destro mouse, il punto dalla griglia? grazieeeeeeeeeeeee