title: How to make a popup menu added to a JtextField to be invisible when the JTextField's focus is lost?
body: <p>I have added to a JTextField a JPopupMenu. Unfortunatelly, when i change the focus from JTextField, or when i "minimize" the window, the JPopupMenu still is visible.
  I need to make it invisible if JTextField is loosing the focus.
  How can i do this?</p>