Skip to main content

Animation Deprication

1 reply [Last post]
anmc
Offline
Joined: 2008-10-21
Points: 0

Hi,
I just want to ask why is getAnimation deprecated?:

Resources r = Resources.open("/abc.res");
Button animation = new Button(r.getAnimation("abc.gif"));

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

Hi,
when we deprecate a method we write a comment on the "right" way of
doing things from now on.
You can use getImage() which is essentially equivalent to getAnimation().
> Hi,
> I just want to ask why is getAnimation deprecated?:
>
> Resources r = Resources.open("/abc.res");
> Button animation = new Button(r.getAnimation("abc.gif"));
>
> Thanks
> [Message sent by forum member 'anmc' (anmc)]
>
> http://forums.java.net/jive/thread.jspa?messageID=341739
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net