I'm having a problem with my countdown timer and am figuring that I'm missing something obvious.
All I'm trying to do here is get my jLabel to countdown from 60 to 0.
ActionListener refreshListener = new ActionListener() {
int counterLimit = 60;
public void actionPerformed(ActionEvent e)
{
javax.swing.Timer refreshTimer = new javax.swing.Timer(1000, new ActionListener() {
public void actionPerformed(ActionEvent e) {
counteLimitr--;
String timerCounter = Integer.toString(counterLimit);
countdown.setText(timerCounter);
}
});
refreshTimer.start();
}
};
Compiles fine, just doesn't countdown.