validate

validate

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.

If this Container is not valid, this method invokes the validateTree method and marks this Container as valid. Otherwise, no action is performed.


Overrides:
validate in class Component
See Also:
add(java.awt.Component), Component.invalidate(), JComponent.revalidate(), validateTree()

你可能感兴趣的:(validate)