//我写了个timer的测试程序.引用了,javax.swing.timer,编译时怎么出现找不到timer.
哪个帮忙一下啊
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
interface ActionListener
{
public void ActionPerformed(ActionEvent Event);
}
public class TimerTester
{
public static void main(String[] args)
{
final Rectangle box = new Rectangle(1,1,1,1);
class MyListener implements ActionListener
{
public void ActionPerformed(ActionEvent Event)
{
box.translate(1,1);
System.out.println(box);
}
}
MyListener listener = new MyLi