[JAVA2D] Simple way to animate an image sequence on a JPanel ?
I would like to display a sequence of Image on a JPanel at a given
frame rate (around 30 fps). Right now I am doing this the
horizontalOffset, verticalOffset, this);
In othe words, every time my timing controller tells me it is time to
update the display, I invoke the code above.
This works, however there are strong disadvantages in updating the
panel using such a "brutal" approach: the menus which are placed right
above the panel are unusable. When I try opening one of these menus,
the "drop down" list of options is "hidden" by the frames I draw.
I know I should be using some kind of double buffering but how should
I implement that ?
PS: I'm stuck with jdk 1.4.2 for now so I won't be able to use any of
the nifty new features in Java 5 :-(
To unsubscribe, send email to firstname.lastname@example.org and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
email@example.com and include in the body of the message "help".