private boolean hidePopup(){
  if (actionSource instanceof JToggleButton) {
    JToggleButton toggleSource=(JToggleButton)actionSource;
    toggleSource.setSelected(false);
  }
  if (containingWindow != null) {
    containingWindow.removeComponentListener(this);
    containingWindow=null;
  }
  if (actionSource != null) {
    actionSource.removeComponentListener(this);
    actionSource=null;
  }
  if (popup != null) {
    popupComponent.setVisible(false);
    popupComponent.stopTracking();
    popup.dispose();
    popup=null;
    hideTime=System.currentTimeMillis();
    return true;
  }
  return false;
}

private boolean hidePopup ( ) { if ( actionSource instanceof JToggleButton ) { JToggleButton toggleSource = ( JToggleButton ) actionSource ; toggleSource . setSelected ( false ) ; } if ( containingWindow != null ) { containingWindow . removeComponentListener ( this ) ; containingWindow = null ; } if ( actionSource != null ) { actionSource . removeComponentListener ( this ) ; actionSource = null ; } if ( popup != null ) { popupComponent . setVisible ( false ) ; popupComponent . stopTracking ( ) ; popup . dispose ( ) ; popup = null ; hideTime = System . currentTimeMillis ( ) ; return true ; } return false ; }
hides the popup component .
