File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JpopupMenu action listener not triggered Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JpopupMenu action listener not triggered" Watch "JpopupMenu action listener not triggered" New topic
Author

JpopupMenu action listener not triggered

Nate Lockwood
Ranch Hand

Joined: Feb 22, 2010
Posts: 83
I have the code below that I want to be triggered when the popup menu disappears but it is not triggered.



What is the correct action listener to detect the menu disappearing or not being shown or being hidden or ...?
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2249
    
  47
You can add a PopupMenuListener which will be notified when the popupMenu will become invisible.
Nate Lockwood
Ranch Hand

Joined: Feb 22, 2010
Posts: 83
Many thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JpopupMenu action listener not triggered