public static Component findParentForm(final Component childComponent)
	{
		final Component parent = findParent(childComponent, Form.class);
		if ((parent != null) && parent.getClass().equals(Form.class))
		{
			return parent;
		}
		return null;
	}
public static Component findParentForm ( final Component childComponent ) { final Component parent = findParent ( childComponent , Form . class ) ; if ( ( parent != null ) && parent . getClass ( ) . equals ( Form . class ) ) { return parent ; } return null ; }
Finds the parent form of the given childComponent.

@param childComponent
the child component
@return the component or null if no form is found.