[1809] in java-interest

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

Re: Q:: image dragging

daemon@ATHENA.MIT.EDU (Jonathan Payne)
Sun Sep 17 22:57:02 1995

Date: Sun, 17 Sep 1995 12:25:30 -0700
From: jpayne@starwave.com (Jonathan Payne)
To: biscuit@email.unc.edu
Cc: Arthur.Vanhoff@Eng.Sun.COM, anchor@open.rd.nttdata.jp,
        java-interest@java.Eng.Sun.COM
In-Reply-To: <Pine.A32.3.91.950917143446.196468C-100000@login0.isis.unc.edu> (message from Maria Winslow on Sun, 17 Sep 1995 14:40:30 -0400 (EDT))

I haven't looked at the beta release yet, but I think that if you
override the update(Graphics g) method, rather than the paint(Graphics
g) method, then your background will not automatically be cleared by
the toolkit for you.

When you request a repaint with the repaint() method, it calls your
update method.  The default implementation of update() is to clear the
background rectangle and call the paint method().

So even if you are using double buffering (I might be wrong about
this, depending on how double buffering is used in beta), you will
have flicked if you don't override the update method.

-- 
Jonathan Payne				jpayne@starwave.com
ESPNET SportsZone			http://starwave.com/people/jpayne/
Starwave Corporation
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

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