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 .