Hi David!
This appeared to fix it :
public void drop (DropTargetDropEvent e) {
WidgetAction.State state = processLocationOperator
(Operator.DROP, new WidgetAction.WidgetDropTargetDropEvent (++
eventIDcounter, e));
if (! state.isConsumed ())
e.rejectDrop ();
else {
e.dropComplete(true);
}
}
Upon a successful drop the drag source never knows its complete.....
Lines 204 in Scene component....
Chris
David Kaspar wrote:
Hi Chris,
Are you working on MacOsX? I have seen similar thing on that system only.
Check whether you have added AcceptAction and whether
AcceptProvider.isAccessible and AcceptProvider.accept methods are
called. If so, then unfortunately I do not know how to fix the
"drag-icon-back-jump" issue. Anyway internally it would be working.
The drag&drop is handled by SceneComponent class. If you want, please,
could you check the particular code whether there is a bug there?
Thanks,
David
Friends!
I have a palette that is a JList and the PaletteItem is ultimately
dropped onto my GraphScene. For some reason the "drop" doesn't seem
"complete." , This may be a "swing" question :-) My palette items land
on the canvas...just the drag icon jumps back to the JList palette.
Which to me implies the drop didn't complete....