I have a JPanel which i draw images in. I need to automatically move an images through the screen after about 1 second. Like move 50 pixels, stop for 1 second, move another 50 pixels. Or i wouldn't mind moving it all the way across the screen very slowly.
I tried just updating the position but it just moves the images rapidly. It is not show that it means. It just BAM moves.
How can i move across the jpanel slowly.