/** set cursor */
 public void setCursor(Cursor c) throws InvalidDnDOperationException {
   XToolkit.awtLock();
   try {
     super.setCursor(c);
   } finally {
     XToolkit.awtUnlock();
   }
 }
 /**
  * Updates the source action according to the specified state.
  *
  * @returns true if the source
  */
 private boolean updateSourceAction(int state) {
   int action =
       SunDragSourceContextPeer.convertModifiersToDropAction(
           XWindow.getModifiers(state, 0, 0), sourceActions);
   if (sourceAction == action) {
     return false;
   }
   sourceAction = action;
   return true;
 }
 /** set cursor */
 public void setCursor(Cursor c) throws InvalidDnDOperationException {
   SunToolkit.awtLock();
   super.setCursor(c);
   SunToolkit.awtUnlock();
 }