Right-click context menu with multiple selections


We are trying to enable multi-delete functionality for our JGo application.

The idea being that there are multiple nodes on the view and we want the user to be able to rubber-band select a series of nodes and be able to right-click and select ‘Delete’ (and then we go to the database and perform actual deletes).

We can select multiple nodes without any problems however when we press the right mouse button, all nodes except 1 lose selection.

Is there a way we can modify this behaviour so that multiple nodes may be selected/acted on.


Override JGoView.keySingleSelection to return false if the right button is pressed.

Perfect! Thanks Walter.