The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Right mouse button click

Posted by vijayv on December 26, 2001 at 7:59 AM

MouseEvent.isPopupTrigger()
Returns whether or not this mouse event is the popup-menu trigger event for the platform.

Can use this for windows platform - this method returns a boolean value. This is right button click in Windows or use
SwingUtilitiee class static method call as shown below

SwingUtilities.isRightMouseButton(MouseEvent anEvent)
Returns true if the mouse event specifies the right mouse button.
pass the obtianed mouse event - this should work

have great day

Vijayv





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us