Flickering using Java Elements package
Im pretty new to Java and open to all suggestions for help.
Basically, Im creating a simple animation in a drawing window, and using the draw and clear commands to move the image. This is causing the image to flicker and I would like to know how to stop this.
I think it may have something to do with 'hold' and 'release' commands but like I say Im open to all suggestions
Im using the elements package to create the animation - all I could seem to find elsewhere was help for the AWT.
What is the 'Elements' package? Is this a standard java sdk package?
Look into 'double-buffering' to resolve your flickering. Swing components are double-buffered by default.
google 'java double-buffering' for more info..