How can I add a popup for right mouse click for anywhere on application?
843806Jul 16 2009 — edited Jul 18 2009I have never used popup menus before but need to add on to my application.
This is a swing application with several pages that are basically panels that are added and removed as needed.
I need to have a popup menu that appears anywhere on the application when the right mouse button is clicked,
no matter which component the cursor is over.
I have been able to add one for a specific panel, but that is not what needs to be done, since there are dozens
of separate panels in the application.
Could someone point me to an example of how to make the popup active for anywhere on the application?
Thanks.