Re: Setting Background partly transparent

From: ak (spam_at_imagero.com)
Date: 02/07/04


Date: Sat, 7 Feb 2004 04:39:49 +0100


> I used the paintComponent() method to draw the shape and a
> mouseMotionListener for realising the move- effects.
> On runtime, it paints many shapes (one for each mouse move) but it should
be
> just one.

thats simple:

on every mouseMove() event you need to set Graphics to XOR mode.

then you paint your shape and save current coords.
on next event you paint shape on saved coords, then at new coords, and so
on.

____________

http://reader.imagero.com the best java image reader.