解决方案 »

  1.   

    刚刚看了api,
    http://docs.oracle.com/javase/7/docs/api/
    里面是有构造器方法啊!!!
    Timer(int delay, ActionListener listener)
    Creates a Timer and initializes both the initial delay and between-event delay to delay milliseconds.
    真是烦!!!
      

  2.   

    你自己的类名 不能叫Timer的,这样和Javax.swing.Timer冲突了。