An applet showing a red square that the user can drag with the mouse, on a background of lines. The user can drag the square off the applet and drop it. It will jump back to its starting point.

This applet does uses double buffering, which is the default behavior in Swing.