public boolean isComponentPartOfCurrentMenu(Component c){
  if (selection.size() > 0) {
    MenuElement me=selection.elementAt(0);
    return isComponentPartOfCurrentMenu(me,c);
  }
 else   return false;
}

public boolean isComponentPartOfCurrentMenu ( Component c ) { if ( selection . size ( ) > 0 ) { MenuElement me = selection . elementAt ( 0 ) ; return isComponentPartOfCurrentMenu ( me , c ) ; } else return false ; }
return true if c is part of the currently used menu
