在一个窗口中输出当前系统时间,不需要更新,就是当前那一刻的时间
String r; 
  Date d=new Date();
  r=d.toLocaleString();
  setLayout(new FlowLayout(FlowLayout.CENTER, 10,10));
  Label a=new Label(r);
  add(a);
为何不能输出,小弟新手请各位指教