How can one listen to JPopupMenu invocation? I need to disable a JPopupmenu's JButton WHEN the JPopupMenu is invoked.
Please note that I do not need to listen to a JPopupMenu's menu items, but to the popupmenu's invocation i.e. I need to execute some code WHEN the jpopupmenu is invoked.

