Update a Label with a Swing Timer
I don’t really understand your question why you are using the Random, but here are some observations: I want to update a JLabel with the countdown, every second. Then you need to set the Timer to fire every second. So the parameter to the Timer is 1000, not some random number. Also, in your actionPerformed() … Read more