public AnnoyingBeep(Graphics k,int t)
    {
    	s=t;
    	l=k;
        toolkit = Toolkit.getDefaultToolkit();
        timer = new Timer();
        timer.schedule(new RemindTask(),
                      0,        //initial delay
                       1*1000);  //subsequent rate
    }