Hi
If you save the selected indices after the key event, then when the click event occurs and the selected indices are different from the saved ones then the mouse is responsible for the selected change. That's it. I responded to question because I used this work around successfully. The cascade of events in java-jx is complex, and there may be another way of making both events happen, but I haven't found it. I should mention that when I right-click using the above, the action occurs after the mouse button comes up, this could be a problem in some cases. Anyway, good luck.