private void repaintDragRepresentation() { DragSource dragSource = dragDescendant.getDragSource(); Visual dragRepresentation = dragSource.getRepresentation(); if (dragRepresentation != null) { Point dragOffset = dragSource.getOffset(); repaint(dragLocation.x - dragOffset.x, dragLocation.y - dragOffset.y, dragRepresentation.getWidth(), dragRepresentation.getHeight()); } }
private void repaintDragRepresentation() { DragSource dragSource = dragDescendant.getDragSource(); Visual dragRepresentation = dragSource.getRepresentation(); if (dragRepresentation != null) { Point dragOffset = dragSource.getOffset(); repaint(dragLocation.x - dragOffset.x, dragLocation.y - dragOffset.y, dragRepresentation.getWidth(), dragRepresentation.getHeight()); } }