• Post Reply Bookmark Topic Watch Topic
  • New Topic

MouseEvent.getButton() equal method in jdk1.1

 
Krishnamurthy Dara
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using jdk1.1 version. What is the equal method in jdk1.1 for
MouseEvent.getButton(). To catch the right click on the screen.

Thanks,
krishna
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
don't know what is/isn't supported in 1.1, but try these



note: needs additional code if you want to specifically ID the left button
i.e. as is, the mouse wheel button will also show as 'left'
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!