@Override protected void dragStarted(DragGestureEvent e) { GuiCard guiCard = (GuiCard) e.getComponent(); guiCard.setLocation(guiCard.getOrigin()); }
@Override protected Transferable getTransferable(DragGestureEvent e) { return new CardTransfer(comp.getCard()); }
public CardDragSourceListener(GuiCard comp) { this(comp, DnDConstants.ACTION_COPY_OR_MOVE); this.comp = comp; this.dragIcon = new ImageIcon(CardManager.getInstance().getCard(comp.getCard())); }