I have a swing GUI on Mac OSX, in which i have a JTable, when i click on JTable a JPopupMenu appears which has different options.
Problem is that when i right click and JPopupMenu appears. and suddenly i click outside my GUI my JPopupMenu is still opened, and is overlapped on other windows, even my Macbook logs out JPopupMenu is still opened.
How can i close all openedPopups when clicking outside the JPopupMenu.