logo       

Re: DragGesture: msg#00045

java.netbeans.modules.graph.user

Subject: Re: DragGesture

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>
Google Custom Search

News | FAQ | advertise