{
// Get the instance of the global drag glass pane used to draw the drag shadow
DragGlassPane gp = DragGlassPane.getInstance();
// Activate the drag shadow glass pane for the root pane container of this component
gp.activate(this);
// Convert the point to glass pane coordinates
Point offset = SwingUtilities.convertPoint(subject, x, y, gp);
// Draw the target rectangle