コード例 #1
0
 /** set cursor */
 public void setCursor(Cursor c) throws InvalidDnDOperationException {
   XToolkit.awtLock();
   try {
     super.setCursor(c);
   } finally {
     XToolkit.awtUnlock();
   }
 }
コード例 #2
0
 /**
  * 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;
 }
コード例 #3
0
 /** set cursor */
 public void setCursor(Cursor c) throws InvalidDnDOperationException {
   SunToolkit.awtLock();
   super.setCursor(c);
   SunToolkit.awtUnlock();
 }