In the target listener, clear the drag cursor on the last component, if any,

before setting a new one. This is needed because sometimes the mouseExited
will not be called for the previous component, for example if it was hidden
or a tab changed as a result of the drag over.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1164 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray
2003-07-09 02:03:34 +00:00
parent e6c99ce2e8
commit 1b795f6f0a
@@ -1,5 +1,5 @@
//
// $Id: DnDManager.java,v 1.19 2003/05/20 17:35:51 ray Exp $
// $Id: DnDManager.java,v 1.20 2003/07/09 02:03:34 ray Exp $
package com.samskivert.swing.dnd;
@@ -442,6 +442,7 @@ public class DnDManager
}
// and check the cursor at the component level
clearComponentCursor();
setComponentCursor(newcomp);
}