dcsimg

I show a PopupMenu from a mouseEntered event. How can I close it on a mouseExited event?

Senthil D. Kumar

In the mouseExited method you can do the following :

public void mouseExited(MouseEvent event)
{
      if ( _popupMenu.isVisible())
                _popupMenu.setVisible(false);
}