

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
7 messages in org.netbeans.graph.usersRe: DragGesture| From | Sent On | Attachments |
|---|---|---|
| Chris Palmer | May 24, 2007 8:38 am | |
| David Kaspar | May 24, 2007 9:21 am | |
| Chris Palmer | May 24, 2007 5:03 pm | |
| Chris Palmer | May 24, 2007 7:58 pm | |
| David Kaspar | May 25, 2007 6:36 am | |
| Chris Palmer | May 27, 2007 7:42 pm | |
| Chris Palmer | May 27, 2007 7:44 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: DragGesture | Actions... |
|---|---|---|
| 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....
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
Chris Palmer wrote:
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....
Chris







