In the context of Java AWT (Advanced Windowing Toolkit), clear the area for the component to the background colour by doing a fillrect then paint. update calls paint directly. update routines are often overridden to eliminate the fillrect which will reduce flicker.
/** * turn off background repaint, because we will paint * the entire region in paint. * * @param g Graphics context on which we paint. */ public void update ( Graphics g ) { paint( g ); }
update does not typically call validate .
update also means to install a more recent version of a program where the newer version is free. This should either be fully automatic or should take at most two clicks:
Windows dithers about with its updates requiring, count ’em, 6 clicks.
Optional Replicator mirror
of mindprod.com
on local hard disk J: