test/java/awt/dnd/DragSourceListenerSerializationTest/DragSourceListenerSerializationTest.java

Print this page

        

@@ -72,11 +72,10 @@
                 InputEvent.CTRL_MASK, 100, 100, 0, false);
         DragGestureEvent dge = new DragGestureEvent(dgr, DnDConstants.ACTION_COPY,
                 new Point(100, 100),
                 Arrays.asList(me));
         DragSourceContext dsc = new DragSourceContext(
-                Toolkit.getDefaultToolkit().createDragSourceContextPeer(dge),
                 dge,
                 new Cursor(Cursor.HAND_CURSOR),
                 null, null, new StringSelection("TEXT"), null);
 
         ds.addDragSourceListener(dsa1);