Konrad Garus
Konrad Garus

Reputation: 54045

How to drag-and-drop on custom Swing components

How can I implement drag and drop on custom components, e.g. my own JPanel subclasses?

What I need is full Swing-like drag and drop support. With TransferHandlers, DropTargetListeners etc. So the trivial mousePressed() and mouseReleased() is not what I'm looking for.

Upvotes: 2

Views: 8995

Answers (1)

Istao
Istao

Reputation: 7585

Perhaps Lesson: Drag and Drop and Data Transfer.

Upvotes: 2

Related Questions