protected void processFocusEvent(FocusEvent evt){
  super.processFocusEvent(evt);
  if (evt.getID() == FocusEvent.FOCUS_LOST) {
    if (popup != null)     hidePopup();
  }
}

protected void processFocusEvent ( FocusEvent evt ) { super . processFocusEvent ( evt ) ; if ( evt . getID ( ) == FocusEvent . FOCUS_LOST ) { if ( popup != null ) hidePopup ( ) ; } }
ensures that if we lose focus , the popup goes away .
