The recommended practice is not to attach close behavior to a button or other 
UI element, but instead to either override close(boolean) in your Dialog 
subclass or attach a DialogStateListener to your Dialog. That way, you just 
need to call close() in your button press listener. The handler or the 
overridden close() method will take care of the rest.

On Jun 8, 2011, at 10:45 AM, noobmike wrote:

> The dialog does close, but I have a listener with an action on the Login
> button that needs to be performed when the user hits enter. 
> 
> Thanks Greg, 
> 
> Mike.
> 
> --
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/Setting-Push-Button-Focus-tp3039282p3039366.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to