我用了个定时器
如下:
Timer timer=new Timer(200,new ActionListener());
编译时 总是出错 ,能告诉我怎么改吗?
如下:
Timer timer=new Timer(200,new ActionListener());
编译时 总是出错 ,能告诉我怎么改吗?
解决方案 »
- 初学java,代码通不过编译,求高手指点
- 程序运行完关闭窗口后,不能释放内存
- 静态有什么特点
- java获取宽带连接的账号、密码(个人玩玩,没其他意图)
- 几个java相关的算法集锦,多多指正,还有什么其它好的例子请补充?学习贴.
- java正则,贪婪,与懒惰的问题.(有违常理)
- 怎么用Java实现定时执行某程序
- 我想把一个变量的值输出到txt文件中,应该怎么写?
- 读取MS SQL的ntext 值
- 我在用java.util.zip开发一个简单的压缩软件但是老是不正确,我不知道如何改正,请指教!!
- eclipse里怎么看不了java自带的类库?
- 菜鸟提问:现在想学java,一点java基础都没有,该从哪儿学习呢?
jdk5.0中
Timer timer=new Timer()这样编译通过不了
Timer()
Creates a new timer.
Timer(boolean isDaemon)
Creates a new timer whose associated thread may be specified to run as a daemon.
Timer(String name)
Creates a new timer whose associated thread has the specified name.
Timer(String name, boolean isDaemon)
Creates a new timer whose associated thread has the specified name, and may be specified to run as a daemon.
这是java.util.Timer类的所有构造函数。