final boolean areBoundsValid(){
  Container cont=getContainer();
  return cont == null || cont.isValid() || cont.getLayout() == null;
}

final boolean areBoundsValid ( ) { Container cont = getContainer ( ) ; return cont == null || cont . isValid ( ) || cont . getLayout ( ) == null ; }
check whether we can trust the current bounds of the component . the return value of false indicates that the container of the component is invalid , and therefore needs to be layed out , which would probably mean changing the bounds of its children . null - layout of the container or absence of the container mean the bounds of the component are final and can be trusted .
