ここにコードがあります
public class TimeClass implements ActionListener{
int timerCounter;
public TimeClass(int timerCounter){
this.timerCounter = timerCounter;
}
public void ActionPerformed(ActionEvent time){
timerCounter--;
if(timerCounter >= 1){
timeLeft.setText("Time Remaining: " + timerCounter);
}else{
timer.stop();
timeLeft.setText("Game Over!");
click.setEnabled(false);
}
}
public void actionPerformed(ActionEvent e) {
}
}
タイマーがデクリメントしません。コードのどこが間違っていますか?プレゼンテーションにこれが必要です。できるだけ早くこれが必要です。ありがとう。