I figured it out: I forgot to import javax.swing.Timer;.
I can't figure out what I did wrong here, so I was hoping you guys can help me out:
The complier said it couldn't find the symbol at "timer = new Timer(1000, new ActionListener()"Code:Timer timer; Tin tin = new Tin(); //inside a method timer = new Timer(1000, new ActionListener() { public void actionPerformed(ActionEvent evt) { if (tin.test() == true) count++; } });


Reply With Quote


Bookmarks