java.awt.dnd.InvalidDnDOperationException: Drag and drop in progress

Discussion in 'Java' started by shackman, Aug 16, 2006.

  1. shackman

    shackman Guest

    i've implemented DnD. DnD from Java to Java and DnD from Native to Java
    work fine. DnD from Java to Native works fine ONLY THE FIRST TIME. for
    subsequent DnD from Java to Native attempts, i get

    "java.awt.dnd.InvalidDnDOperationException: Drag and drop in
    progress"

    from

    public void dragGestureRecognized(DragGestureEvent event)
    {
    ...
    event.startDrag(DragSource.DefaultMoveNoDrop, transferData,
    dragSource);
    ...
    }

    It looks like the DnD in progress flag isn't being set by the native
    code supplied with the JDK.

    Anyone have a suggestion on how i can get past this problem?

    Shackman
    shackman, Aug 16, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Oliver Klein
    Replies:
    0
    Views:
    688
    Oliver Klein
    Aug 24, 2003
  2. Robert Mark Bram
    Replies:
    2
    Views:
    5,958
    Robert Mark Bram
    Dec 11, 2003
  3. Ottfried
    Replies:
    1
    Views:
    4,902
    Ottfried
    Apr 9, 2004
  4. Timo Nentwig

    Java Swing DnD and Konqueror

    Timo Nentwig, Dec 24, 2004, in forum: Java
    Replies:
    0
    Views:
    325
    Timo Nentwig
    Dec 24, 2004
  5. Prakash
    Replies:
    1
    Views:
    286
    GArlington
    Feb 26, 2008
Loading...

Share This Page