7 messages in org.netbeans.graph.usersRe: DragGesture
FromSent OnAttachments
Chris PalmerMay 24, 2007 8:38 am 
David KasparMay 24, 2007 9:21 am 
Chris PalmerMay 24, 2007 5:03 pm 
Chris PalmerMay 24, 2007 7:58 pm 
David KasparMay 25, 2007 6:36 am 
Chris PalmerMay 27, 2007 7:42 pm 
Chris PalmerMay 27, 2007 7:44 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: DragGestureActions...
From:David Kaspar (Davi@Sun.COM)
Date:May 25, 2007 6:36:32 am
List:org.netbeans.graph.users

Hi Chris,

I should read documentation from time to time. Thanks for finding it. The change is committed in the CVS. Please, try to verify it and let me know if there would be any problems.

Thanks, David

Chris Palmer wrote:

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....

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....