The red cube is an example of a draggable geometry. It can be clicked and dragged around and then dropped. It makes use of the DraggableGeometry and ReleaseHandlerGeo utility classes.
For a short tutorial on this sample click this button:
View Java Source Code