public void actionPerformed(ActionEvent evt) {
if(isShowing())
{
rebour--;
g=getGraphics();
g.setColor(Color.white);
g.drawRect(0,0,500,500);
g.fillRect(0,0,500,500);
g.setFont(fonte);
g.setColor(Color.black);
g.drawString(String.valueOf(rebour),200,200);
if(rebour==0)
{
timer.stop();
timer2.start();
}
} |