public void removeNotify(){
  super.removeNotify();
  if (textArea != null) {
    l.uninstall(textArea);
  }
}

public void removeNotify ( ) { super . removeNotify ( ) ; if ( textArea != null ) { l . uninstall ( textArea ) ; } }
called when this component is removed from the view hierarchy .
