It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes how to give animation to images? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to give animation to images?" Watch "how to give animation to images?" New topic

how to give animation to images?

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1012
how to give more effects to image, i have a fish image, that is moving around the JFrame, and what i want also animation in fins of fish, how can i do this??
here is my code:-

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
just a thought only:

if you understand how cartoons are animated i.e. lots of drawings each drawn a little differently,
then shown in quick succession so the drawings appear to have movement, maybe if you can get
a slideshow (?) of images of a fish swimmming, then, as you move the fish position you also change
the image to the next one in the slideshow.
It is sorta covered in the JavaRanch Style Guide.
subject: how to give animation to images?
jQuery in Action, 3rd edition