public final boolean updateInsets(final Insets newInsets){
synchronized (getStateLock()) {
    if (insets.equals(newInsets)) {
      return false;
    }
    insets=newInsets;
  }
  return true;
}

public final boolean updateInsets ( final Insets newInsets ) { synchronized ( getStateLock ( ) ) { if ( insets . equals ( newInsets ) ) { return false ; } insets = newInsets ; } return true ; }
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 .
