On Sat, 14 Nov 1998, Karthik Vishwanath wrote:
> Hi all,
> On receiving a mousePressed, how does one determine which mouse
> button is the one clicked?
>
> ps: i am sorry if this is a purely java based question, but then i do not
> know where else i can post it.
>
See
javap java.awt.event.MouseEvent
javap java.awt.event.InputEvent
Use getModifiers() in conjunction with the info the above commands provide.
Read the online docs for more.
Be aware that isPopupTrigger() is active on mousepress on Unix,
mouserelease on WIN* and OS/2. This is consistent with the host
environment, but a great way to trick programmers into writing
non-portable code.
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.