Re: Setting Background partly transparent
From: ak (spam_at_imagero.com)
Date: 02/07/04
- Next message: Jon A. Cruz: "Re: Problem with splash window (startup) (jwindow,jdesktoppane,jprogressbar)"
- Previous message: Marco Schmidt: "Re: ByteArraySeekableStream ignores offset"
- In reply to: Silvio Malitsch: "Setting Background partly transparent"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Jon A. Cruz: "Re: Problem with splash window (startup) (jwindow,jdesktoppane,jprogressbar)"
- Previous message: Marco Schmidt: "Re: ByteArraySeekableStream ignores offset"
- In reply to: Silvio Malitsch: "Setting Background partly transparent"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]