java - Animated GIF in Splashscreen -
i have jar file generated ant script following code in it:
<manifest> <attribute name="main-class" value="org.epistasis.exstracs.main"/> <attribute name="class-path" value="."/> <attribute name="splashscreen-image" value="logo_anim.gif"/> </manifest> <!--some code--> <zipfileset dir="." includes="logo.png"/> <zipfileset dir="." includes="logo_anim.gif"/> <zipfileset dir="." includes="icon.png"/>
when run jar file, no splash screen generated. verified gif in file opening favorite archive manager. loaded gif code , displayed it. however, won't load splashscreen. (no splashscreen displayed, splashscreen.getsplashscreen()
returns null
)
if replace
<attribute name="splashscreen-image" value="logo_anim.gif"/>
with
<attribute name="splashscreen-image" value="logo.png"/>
or
<attribute name="splashscreen-image" value="icon.png"/>
the splashscreen displayed specified image.
i'm not sure if matters, gif larger png files. (~2mb logo_anim.gif
vs 40kb logo.png
)
Comments
Post a Comment