package com;import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;public class Timer 
{
public static void main(String args[])
 {
  int delay = 100;
      ActionListener taskPerformer = new ActionListener()
      {
      public void actionPerformed(ActionEvent e)
               { 
System.out.println("^^^^^^^^^^^^^^");

}
      };
     new javax.swing.Timer(delay,taskPerformer).start();
   }}代码编译,没有错误,但不能执行输出语句,错在哪儿啊?