开发者

How to drag-and-drop on custom Swing components

开发者 https://www.devze.com 2023-01-02 08:33 出处:网络
How can I implement drag and drop on custom components, 开发者_开发百科e.g. my own JPanel subclasses?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消