My jPopupMenu
object jPopupMenu
on a specific event when the user right- JTable
table ( JTable
). It is necessary to hide it if the user clicks outside the zone of the menu and the table itself with any button or show it in another place if the user clicks with the right button.
Well, to show in another place turned out, just changing the location. And if it is already open, I can hide it, provided that I clicked on the table. How to hide if the user clicks on the application window?