Java Graphics After Images?

What would be a good way to do after images in Java? I’m working with Java Graphics and Graphics2D. Using only vector graphics (fillrect, fillpoly) and I have no idea where I should start.

Well, you can always just draw the image multiple times and fade out the last ones. So instead of every image having 1 position they have 5 previous positions, and you just draw images at each of those positions. This can leave a nice trail behind them. Not sure if that’s exactly what you want. If you want a really even fade, you’ve got to draw more images, or you can create a new BufferedImage and mess with the raster. Basically the main image gets drawn on top and then the pixels along the outer edge are drawn out in lines growing increasingly more faded.