Jun 6, 2001 #1 globos Programmer Nov 8, 2000 260 FR Hi, I would like to detect when the user presses the right button of his mouse. I tried this, but it does not work : public void mousePressed(MouseEvent e) { if (e.isPopupTrigger ()) { ... } } Thanks. -- Globos
Hi, I would like to detect when the user presses the right button of his mouse. I tried this, but it does not work : public void mousePressed(MouseEvent e) { if (e.isPopupTrigger ()) { ... } } Thanks. -- Globos
Jun 6, 2001 1 #2 manu0 Programmer Apr 28, 2001 54 hi try this : public void mousePressed(MouseEvent e) { if( (e.getModifiers() & InputEvent.BUTTON3_MASK) != 0 ) { .... } } manu0 Upvote 0 Downvote
hi try this : public void mousePressed(MouseEvent e) { if( (e.getModifiers() & InputEvent.BUTTON3_MASK) != 0 ) { .... } } manu0
Jun 6, 2001 Thread starter #3 globos Programmer Nov 8, 2000 260 FR Thanks, it works! You got a star! -- Globos Upvote 0 Downvote