This section shows you how to create an animation with multiple images. You can see how animation has been implemented in the following program or example. The given program implements the animation using more than one images. Image are given below:
In this program, images are displayed one by one from the list of the images. Images are added to the label on the frame or window. This program shows the image one by one after 1000 milliseconds or 1 second. The time delaying is maintained by thread.
One method has been used to show images on the frame one by one during the 1000 milliseconds. This collection of images makes the application as an animation.
This is the method of the Thread class which is used to sleep the program for the specified time. The time to sleep is passed through the sleep() method of the Thread class as parameter.
Here is the code of the program:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: April 14, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles