public void run() {
   if (Flag.getFlag()) {
     String UITime = ClockUtil.getTime();
     Date uitime;
     try {
       uitime = df.parse(UITime);
       Calendar rightNow = Calendar.getInstance();
       rightNow.setTime(uitime);
       rightNow.add(Calendar.SECOND, +1);
       Date dt1 = rightNow.getTime();
       String time = df.format(dt1);
       ClockUtil.setTime(time);
     } catch (ParseException e) {
       e.printStackTrace();
     }
   } else {
     timeChanger.cancel();
   }
 }
 @Override
 public void operate() {
   Flag.startFlag();
   timeChanger = new Timer();
   timeChanger.schedule(new ChangeTask(), 0, 1000);
 }