void registerMediaComponent(Component mediaCmp){
  if (mediaComponents == null) {
    mediaComponents=new ArrayList<Component>();
  }
  if (!mediaComponents.contains(mediaCmp)) {
    mediaComponents.add(mediaCmp);
  }
}

void registerMediaComponent ( Component mediaCmp ) { if ( mediaComponents == null ) { mediaComponents = new ArrayList < Component > ( ) ; } if ( ! mediaComponents . contains ( mediaCmp ) ) { mediaComponents . add ( mediaCmp ) ; } }
registering media component to this form , that like to receive animation events
