Ver originalif (evento.getSource() == Si) { paint(this.getGraphics()); // <-- y pasando parámetro que corresponde }