Move Graphics around with mouse

Is there an easy way to move my drawn graphics around with my mouse?
as in, click anywhere in the window, move the path x,y accordingly to your mouse movements over the screen, stop moving the path on mouseUp ?

like this:

Starting point for this is:

Or doing it at a slightly lower level by keeping track of the top left corner to display with a Point, handle mouse gestures via MouseListener callbacks (that is already a base class of Components) and do the drawing yourself in your paint() overridden method