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.
Perhaps Lesson: Drag and Drop and Data Transfer.
精彩评论