void revalidate()  Request that the component and its affected containers be laid out again. You shouldn't generally need to invoke this method unless you explicitly change a component's size/alignment hints after it's visible or change a containment hierarchy after it's visible. You might need to invoke repaint after revalidate.  public void validate()Validates this container and all of its subcomponents. 
The validate method is used to cause a container to lay out its subcomponents again. It should be invoked when this container's subcomponents are modified (added to or removed from the container, or layout-related information changed) after the container has been displayed.