Exemplo n.º 1
0
 /**
  * Request the window insets from the delegate and compares it with the current one. This method
  * is mostly called by the delegate, e.g. when the window state is changed and insets should be
  * recalculated.
  *
  * <p>This method may be called on the toolkit thread.
  */
 public final boolean updateInsets(final Insets newInsets) {
   synchronized (getStateLock()) {
     if (insets.equals(newInsets)) {
       return false;
     }
     insets = newInsets;
   }
   return true;
 }