1

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)?

Favonius
  • 13,959
  • 3
  • 55
  • 95
srk
  • 4,857
  • 12
  • 65
  • 109

1 Answers1

6

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.

Frettman
  • 2,251
  • 1
  • 13
  • 9