}
private void drawTargetRect(Component subject, int x, int y)
{
// 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
Rectangle targetRect = new Rectangle(offset.x, offset.y, subject.getWidth(), subject.getHeight());
gp.drawRectangle(targetRect, true);
}