0

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.

Asghar
  • 2,336
  • 8
  • 46
  • 79
  • possible duplicate of [java swing GUI popupMenu sit above the interface of another program or file window](http://stackoverflow.com/questions/10245967/java-swing-gui-popupmenu-sit-above-the-interface-of-another-program-or-file-wind) – Robin Apr 25 '12 at 13:44
  • That worked for FileMenu, but not for JPopUpMenu – Asghar Apr 25 '12 at 13:55

0 Answers0