Flickering using Java Elements package

Advertisement
October 11

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.
Cheers, Luke

Advertisement

Replay

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.
http://www.spacejack.org/games/dbufanim/
http://java.sun.com/docs/books/tutorial/extra/fullscreen/doublebuf.html
google 'java double-buffering' for more info..

View 3 Replies

Tags:

  1. will z10 pair with ive-w530
  2. Backup easyserver has stopped
  3. vidioplays.song
  4. BAPI_SALESDOCUMENT_CHANGE sample
  5. 305500 non oracle exception
  6. QRRI
  7. minerals11i
  8. smileaqq
  9. officialwv4
  10. steel6s3
Copyrights 2019 Fcffair BigData Resource, All rights reserved