[4155] in java-interest

home help back first fref pref prev next nref lref last post

Re: Animation

daemon@ATHENA.MIT.EDU (Edd Dumbill)
Tue Dec 12 13:25:11 1995

Date: Tue, 12 Dec 1995 14:33:37 +0000 (GMT)
From: Edd Dumbill <edmundd@compnews.co.uk>
To: Sunny Fok <sunny@hkstar.com>
Cc: java-interest@java.sun.com
In-Reply-To: <Pine.SOL.3.91.951212125859.17411F-100000@b2.hkstar.com>

On Tue, 12 Dec 1995, Sunny Fok wrote:

> Hi all java man,
> 
>   I have written an animation applet which has a text running 
> horizontally across the screen over a background image. But the 
> flickering arise from each refresh is not acceptable. Has someone 
> experienced such a problem, how would I solve this problem? 

Yep. The solution is to use double buffering, ie. draw onto an image and 
then when all your  drawing is complete use the paint method to draw this 
image on the applet's graphics. Some nice chap has done this for ppl to 
use, it's called NoFlickerApplet and can be found quite easily (I think 
Gamelan must have it somewhere).

Edd.

      Edd Dumbill - Software Engineer - PA Data Design - +44 1430 488224
    mailto:edmundd@padd.press.net - http://www.pa.press.net/people/edmundd
      and i like the way you're broken and i'll like you when you're old

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post