According to an AWTEventListener log I have two problems:
- In the WoM client I got the drag exception, i.e. the DragGestureEvent was called.
- In the TestJMEDesktop the gesture is not recognized at all.
This is from TestSwingDesktop where drag and drop works:
java.awt.event.MouseEvent[MOUSE_PRESSED,(99,49),button=1,modifiers=Button1,extModifiers=Button1,clickCount=1] on DndPanel1
java.awt.event.MouseEvent[MOUSE_DRAGGED,(99,50),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on DndPanel1
java.awt.event.MouseEvent[MOUSE_DRAGGED,(100,52),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on DndPanel1
java.awt.event.MouseEvent[MOUSE_DRAGGED,(104,58),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on DndPanel1
===DRAG===
java.awt.event.ComponentEvent[COMPONENT_MOVED (0,0 800x600)] on frame0
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
java.awt.event.HierarchyEvent[ANCESTOR_MOVED (javax.swing.JFrame[frame0,0,0,800x600,invalid,layout=java.awt.BorderLayout,title=TestSwingDesktop,resizable,normal,defaultCl
===DROP===
java.awt.event.MouseEvent[MOUSE_EXITED,(214,176),button=0,clickCount=0] on DndPanel1
java.awt.event.MouseEvent[MOUSE_ENTERED,(99,29),button=0,clickCount=0] on null.glassPane
java.awt.event.MouseEvent[MOUSE_ENTERED,(104,56),button=0,clickCount=0] on DndPanel2
This is a log from TestJMEDesktop. The PRESSED and DRAGGED events are on JLabel, not on the panel as above and that's why I miss the DragGestureEvent.
java.awt.event.MouseEvent[MOUSE_PRESSED,(38,34),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on javax.swing.JLabel[,0,0,190x68,alignmentX=0.0,alignmentY=
java.awt.event.MouseEvent[MOUSE_DRAGGED,(39,34),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on javax.swing.JLabel[,0,0,190x68,alignmentX=0.0,alignmentY=
java.awt.event.MouseEvent[MOUSE_DRAGGED,(39,37),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on javax.swing.JLabel[,0,0,190x68,alignmentX=0.0,alignmentY=
java.awt.event.MouseEvent[MOUSE_DRAGGED,(40,37),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on javax.swing.JLabel[,0,0,190x68,alignmentX=0.0,alignmentY=
java.awt.event.MouseEvent[MOUSE_DRAGGED,(40,39),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on javax.swing.JLabel[,0,0,190x68,alignmentX=0.0,alignmentY=
java.awt.event.MouseEvent[MOUSE_DRAGGED,(41,39),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on javax.swing.JLabel[,0,0,190x68,alignmentX=0.0,alignmentY=
java.awt.event.MouseEvent[MOUSE_DRAGGED,(41,41),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on javax.swing.JLabel[,0,0,190x68,alignmentX=0.0,alignmentY=
java.awt.event.MouseEvent[MOUSE_DRAGGED,(41,42),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on javax.swing.JLabel[,0,0,190x68,alignmentX=0.0,alignmentY=
java.awt.event.MouseEvent[MOUSE_DRAGGED,(45,42),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on javax.swing.JLabel[,0,0,190x68,alignmentX=0.0,alignmentY=
...
java.awt.event.MouseEvent[MOUSE_DRAGGED,(76,132),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on javax.swing.JLabel[,0,0,190x68,alignmentX=0.0,alignmentY
java.awt.event.MouseEvent[MOUSE_RELEASED,(76,132),button=0,modifiers=Button1,extModifiers=Button1,clickCount=0] on javax.swing.JLabel[,0,0,190x68,alignmentX=0.0,alignment
java.awt.event.MouseEvent[MOUSE_MOVED,(76,21),button=0,clickCount=0] on null.glassPane