hi guys, could anybody help me how to catch the mouse right click event
thanks in advance, lavanya
Roy Ben Ami
Ranch Hand
Joined: Jan 13, 2002
Posts: 732
posted
0
if u have the jdk 1.4 u can use the getButton() function on the MouseEvent to get which button is pressed( 1 2 or 3). if u dont' u can use teh function isMetaDown() on the event. if it returns true then the right button was pressed, false it is the left or the the middle.