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()); } }
Visual dragRepresentation = dragSource.getRepresentation();
Visual dragRepresentation = dragSource.getRepresentation();
dragLocation = null; } else { if (dragSource.getRepresentation() != null && dragSource.getOffset() == null) { throw new IllegalStateException("Drag offset is required when a "
dragLocation = null; } else { if (dragSource.getRepresentation() != null && dragSource.getOffset() == null) { throw new IllegalStateException("Drag offset is required when a "