how to handle mouse right click event
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, July 6, 2001 04:16 AM

i want to handle event's of mouse right click

Re: how to handle mouse right click event

Posted By:   Anonymous  
Posted On:   Tuesday, August 28, 2001 07:28 PM

You can use MouseEvent.isMetaDown(), it will return true value when right click.

Re: how to handle mouse right click event

Posted By:   palani_kumar  
Posted On:   Wednesday, July 18, 2001 04:48 AM


public void mouseClicked(MouseEvent me)

{

if(me.isPopupTrigger())

{

//statememt

}

}



But isPopupTrigger() always gives false in unix. so it is better use this method


public void mouseClicked(MouseEvent me)

{

if(me.getModifiers ()== InputEvent.BUTTON3_MASK )

//statements

}

About | Sitemap | Contact