Tags:
SUN, JAVA, 1.5jdk
When drag and drop is perforrmed, How can i preserve the datasouce and only allow a copy to be dragged to the droptarget?
I tried this;
DropTarget dropTarget1 = new DropTarget(test, DnDConstants.ACTION_COPY, dndListener);
DragSource dragSource = new DragSource();
DragGestureRecognizer dragRecognizer1 = dragSource.createDefaultDragGestureRecognizer(newbutton1, DnDConstants.ACTION_COPY, dndListener);
But it moved the datasouce(newbutton1) completely.
Start your free trial to view this solution
Zone:
Programming
Question Asked By:
MichaelCroteau
Question Asked On:
04.16.2008
Participating Experts:
1
Points:
500
Views:
0
Translate:
20080236-EE-VQP-29 / EE_QW_2_20070628