Java Right Click does not make a choice. What is the easiest way to solve this problem globally?

Is there a way to make a global right-click and select the item that you right-click? As far as I understand, this is a bug in Swing for a long time, it will probably never be fixed, because at the moment applications depend on it. Any tips on this globally? Perhaps on L & F?

+5
source share
1 answer

Using a glass panel will do the trick.

Here's a tutorial on how to use the glass panel to right-click and undo it to the desired component.


, Toolkit. addAWTEventListener. . :

Toolkit.getDefaultToolkit().
        addAWTEventListener(listener, AWTEvent.MOUSE_EVENT_MASK);

+2

All Articles