public static class DragLabel extends JLabel {
private static final long serialVersionUID = 1L;
private boolean dragging;
public DragLabel(Icon icon) {
super(icon);
new DragHandler(this, DnDConstants.ACTION_COPY_OR_MOVE) {
protected Icon getDragIcon(DragGestureEvent e, Point imageOffset) {
dragging = true;
return getIcon();
}
public void dragDropEnd(DragSourceDropEvent e) {