public void componentShown(final ComponentEvent e){
  final Object source=e.getSource();
  if (!(source instanceof JMenuItem))   return;
  setChildVisible((JMenuItem)source,true);
}

public void componentShown ( final ComponentEvent e ) { final Object source = e . getSource ( ) ; if ( ! ( source instanceof JMenuItem ) ) return ; setChildVisible ( ( JMenuItem ) source , true ) ; }
invoked when the component has been made visible . see componenthidden - we should still have a menuitem it just isn ' t inserted
