right-click mouse

hi,Is there a way of enabling a popup menu to be displayed by strictly a right-click, I saw the mouseEvent Listenter implets on click which means both right and left, but is there a way to make it just the right?
[226 byte] By [Octaviana] at [2007-10-3 11:59:26]
# 1
Yes, call getButton() on the MouseEventSee the API for specifics.
zadoka at 2007-7-15 14:35:34 > top of Java-index,Security,Event Handling...
# 2
thank you!
Octaviana at 2007-7-15 14:35:34 > top of Java-index,Security,Event Handling...
# 3
Hi, There are final data members in the MouseEvent, by using these variables the programmer can differentiate between right click and left click.Compare it and write desired code.
SridharJavaa at 2007-7-15 14:35:34 > top of Java-index,Security,Event Handling...