Hi,
I am trying to code a simple alarm clock, and I'm having problems with the repaint() method.
The applet has been setup using a JPanel, and as the seconds pass by, I want the digital clock to update this. In the run() method I call for the repaint() hoping that it will clear the screen and update it with the new time.
What actually happens is the new time updates itself and paints on the old time![]()
can someone pls help me with this. I've written the same code without using a Jpanel, but using normal frames and it works.![]()
anyone got any ideas??