Reputation: 5126
I have a Lable(org.eclipse.swt.widgets.Label)
in a view for which I've set an image which is a gif image,named ajax.gif
using label.setImage();
In this case image is shown without animation, is there a way do this(show animated gif)?
Upvotes: 1
Views: 784
Reputation: 2271
SWT labels do not support this out of the box. But you can implement it yourself by using a separate thread to cycle through the images in a certain interval and set them on the label. There's an official SWT code snippet that will show you how to do it.
Upvotes: 6