|
How to Remove Flashing in an Applet |
|
|
Generally double buffering is used for removing the flashing. But is does not solves the problem 100%. Following tricks can be used to solve the flashing problem in animation.
- Use Media Tracker for downloading the images.
- Use double buffering.
- Change the default background color of the applet to the color of you Canvas by using setBackground(Color of the Canvas) in the init method of the applet.
- In an animation if you are updating only part of a area use repaint(x1,y2,x2,y2) instead of repaint().
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.