Using the same PopupMenu behavior's on JPopupMenu TrayIcon [SOLVED]
I have a TrayIcon in my application with an event click to open a JPopupMenu. I need to reproduce the same PopupMenu's behavior, when my JPopupMenu is clicked, it execute something and close, or when the mouse clicks the outside of my JPopupMenu just close. Everything is working fine, only when the mouse click outside of my JPopupMenu this doesn't close, what can i do??
A invoker was setted in my JPopupmenu, but this invoker needs to be visible, so this one was configured very small[1,1] and showed behind my JPopupmenu, then i believed that this invoker catch's the lost focus events.
Message was edited by: brancaleone