One option would be to fill the popup with a widget that implements SourcesMouseEvents (such as FocusPanel). Then you could use the MouseListener method onMouseLeave() to close the popup.
However, you may want to think from a usability perspective about why you'd want to do this. When a popup is shown the user's cursor may not already be over the popup; so for the popup to close the user may need to mouse over the popup and then out of it to close it, which could be confusing. Maybe what you're trying to do is display a tooltip or some information when the mouse is over a certain Widget. If that's the case you don't need a MouseListener in the PopupPanel but instead on the Widget the user would MouseOver. Then you could use the MouseListener's onMouseEnter() / onMouseLeave() methods to show/hide the popup. On Sep 4, 8:01 am, javaz <[EMAIL PROTECTED]> wrote: > hi ,Can anyone give me idea on how to hide PopupPanel when mouse > leaves its area? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
