user1061128
user1061128

Reputation: 1

Detect when a JLabel (or similar) is dragged off a component

How do I detect when something like a JLabel is dragged off a component? I am trying to create an effect like the OS X dock when removing applications from it.

I've tried using DragSourceContext's dragDropEnded() method to detect when a component has been dropped, but it has a delay because it seems to wait until the transfer is done processing.

Anyone deal with this before?

Upvotes: 0

Views: 60

Answers (1)

StanislavL
StanislavL

Reputation: 57381

May be this http://java-sl.com/dockable.html ?

Upvotes: 2

Related Questions