Layers
I need to update things on the screen while keeping a background image intact. At the moment I am repainting the foreground and background, but I know there has to be a better way!
Graphics2D g2d = (Graphics2D)g;
g2d.setPaint(mapPaint);//set image to paint
g2d.fill(mapRect);//lay down background
updateDisplay(g2d);//update foreground and lay it on top
the trouble I am having is clearing the trail left on the foreground without redrawing the background.
CaseyB

