Thursday, 26 September 2013

Eclipse is not recognizing my GIF animation file

Eclipse is not recognizing my GIF animation file

I am trying to use a GIF (animated) file as Splash screen for my
application. I use Eclipse IDE.
I created the GIF using 6 JPEG images. It works perfectly fine if I open
it in IE.
But Eclipse is not recognizing the file.
The following code returns 'null'.
SplashScreen splash = SplashScreen.getSplashScreen();
if(splash==null)
System.out.println("It was null!!");
else
System.out.println("It wasn't null!!!");
If I replace my GIF file (180kb) with another GIF (150kb), Eclipse is
recognizing it.
Are there any conditions that a GIF file should meet to be compatible with
Eclipse?

No comments:

Post a Comment