You will need to translate the Graphics2D context over a set of coordinates.
Have a timer that changes the coordinates over a given period. Then translate (AffineTransform) the Graphics2D context based on the coordinates that are being changed by your timer.
Do the translate in the paint method of your component and update the translate coordinates in a seperate thread.
Hope this helps.