thx for your reply, at least i got it, i can create a listener for the drag & drop:
DragSource dragSource = new DragSource();
DragGestureListener listener = new DragGestureListener() {
public void dragGestureRecognized(DragGestureEvent event) {
........
event.startDrag (null, strSel) ;
}
...
}
listener.dragGestureRecognized(new DragGestureEvent(new DragGestureRecognizer(dragSource, component) {
}, DnDConstants.ACTION_COPY, new Point(0,0), events ));
but unfortunately i get this exception:
java.lang.IllegalArgumentException: source actions
at java.awt.dnd.DragSourceContext.(DragSourceContext.java:169)
at java.awt.dnd.DragSource.createDragSourceContext(DragSource.java:454)
at java.awt.dnd.DragSource.startDrag(DragSource.java:293)
at java.awt.dnd.DragSource.startDrag(DragSource.java:403)
at java.awt.dnd.DragGestureEvent.startDrag(DragGestureEvent.java:203)
any suggestions?