[sip-comm-dev] Re: [sip-comm-issues] [Issue 603] Systray JPopup menu doesn't disappear when the focus is lost

Egidijus Jankauskas egidijus.jankauskas at email.lt
Wed Jul 8 18:57:01 CEST 2009


Hi Emil,

On 8 Jul 2009, at 17:30, Emil Ivov wrote:

> I believe the issue has to do with the fact that we have no way to
> detect focus loss for awt components ... or at least we haven't  
> found any.

I think this could be done by using WindowListener and  
WindowFocusListener. WindowEventDemo gives a focus loss message when  
it looses focus:
http://java.sun.com/docs/books/tutorial/uiswing/examples/events/index.html#WindowEventDemo

Cheers,
Egidijus

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: dev-help at sip-communicator.dev.java.net





More information about the dev mailing list