I have a simple form using BoxLayout.Y_AXIS - using setBgImage(), it displays static PNG image retrieved from the resource file. Using a touchscreen device, when the user taps that image, I want to start an animation.
the animation images frames are currently an Image of 17 PNGs that I want animate in order and once finished stop - no loop at all.
the static image is really just the first image in this 18 frame animation - so it's displayed - when the user taps the image, the animation runs on top of the static img - when the animation is over - the static img remains.
Looking for any ideas on how to implement this - I have considered using something similar to Shai's progress indicator - or maybe a separate class that implements runnable and overrides paint