Explain the purpose of invalidate and validate methods The invalidate method is called as a side effect of an addition or deleting some component. calling invalidate() is however the first step of processing a COMPONENT_RESIZED event.
validate() checks if a container is valid or not. It calls layout or validateTree to calculate the exact positions and sizes of all the contained components. validate() also decides the new size and location of a component in the container.
|