Hi.
I need one help in the drag and drop cursor change.I have implemented
drag and drop for a JTree.Now while dragging for normal copy operation
and move operation i am setting the cursor in the
dragGestureRecognized(DragGestureEvent e) method by using the following
method.

Cursor cursor=selectCursor (dragGestureEvent.getDragAction());

private Cursor selectCursor (int action) {

      return (action == DnDConstants.ACTION_MOVE) ?
      DragSource.DefaultMoveDrop : DragSource.DefaultCopyDrop;
    }

The tree is in a panel and only the JTree is made as the dragSource and
dropTarget.
The problem is that the cursor appearing for copy action is
"DragSource.DefaultCopyDrop".How can i change the cursor?.if anybody has
worked on this pls help me.
with regards
prakash


_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to