|
Re: DragGesture: msg#00046java.netbeans.modules.graph.user
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 >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: >>> users-unsubscribe-Hi7mZnf3vbIkiw2pgZvNdR2eb7JE58TQ@xxxxxxxxxxxxxxxx >>> For additional commands, e-mail: >>> users-help-Hi7mZnf3vbIkiw2pgZvNdR2eb7JE58TQ@xxxxxxxxxxxxxxxx >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: >> users-unsubscribe-Hi7mZnf3vbIkiw2pgZvNdR2eb7JE58TQ@xxxxxxxxxxxxxxxx >> For additional commands, e-mail: >> users-help-Hi7mZnf3vbIkiw2pgZvNdR2eb7JE58TQ@xxxxxxxxxxxxxxxx >> >> >> >
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: DragGesture, Chris Palmer |
|---|---|
| Next by Date: | Move selected graph lib2, chris johnston |
| Previous by Thread: | Re: DragGesture, Chris Palmer |
| Next by Thread: | Re: DragGesture, Chris Palmer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |