I have an application in which you can right-click and drag (as well as left-click and drag for different operations). However, when running this on linux, it seems that the pop-up menus are started with the mouse, not the mouse. This leads to the fact that every time I click the right mouse button to perform a drag, pop-up menus are launched (unlike the windows where the mouse is located).
Any thoughts on how to get around this?
thanks.
EDIT: Code Posting
Code for popup menu
// this is called from mousePressed and mouseReleased if (e.isPopupTrigger() && !e.isConsumed()) { // show the popup menu }
This code is what gets called when right-clicking / dragging (this is third-party code, but it is open source, so I can change it as needed)
// this is called on all mouse events if (buttonAction.mouseButton != 0) { // handle the event }
java linux popup
Jeff storey
source share