Mouse events(right click)

how to trigger mouse event on right click ?i.e.

Mouse events already occur on right click.
component.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent event) {
switch (event.getButton()) {
case MouseEvent.BUTTON1:
// Left button
case MouseEvent.BUTTON2:
// Right button
case MouseEvent.BUTTON3:
// Center button, or possible left and right buttons, if that's the way you're configured.
});

Similar Messages

  • Problem with Mighty Mouse in Right Click with Windows Vista Business

    Hi APPLE,
    I have a laptop, Sony Vaio, with Windows Vista Installed in it, i have purchased Apple Wireless Bluetooth Mighty Mouse. Sometimes I get no response when i right click...when i disconnect the mouse, then right click becomes active...but after using for long, right click becomes left click and left click acts normally. Could anyone tell me why this is happening, Can anyone tell me any fix/update/patch Apple has provided for Windows Vista. Is there any driver to configure Apple Wireless Mighty Mouse in Standalone Windows Vista.
    Vineet

    Hi, I have the same situation as u, I am also a viao laptop with Windows Vista Ultiamte, however, my BT might mouse never work at all. How did u do it ? Did u installed any software?

  • How do I change my mouse to right click for copy and paste

    How do I change my mouse to right click for copy and paste?

    OK, what mouse are you using?  Brand, model?  Your right click should register as a right click unless that has been overridden by a preference pane.  If your Mouse preference pane looks like this, your right click should be the equivalent of a control-left-click on a Mac.

  • Mouse left/right click only working in Dock

    My mouse Razer naga had stopped working after i interrupted a sleep
    i tried PRAM reset, and SMC reset. Also tried safe boot
    not working still
    i can move it and click in dock and in Safari it opens links just like when you cmd+leftclick "new tab open"
    is there anyway i can reset usb/keyboard/mouse so i can reinsert it agian so mac finds it agian and let's me configurate it ?

    This is getting stranger and stranger.  I did a test of a simulation, then one based on a standard Adobe template.  In both cases the right-click worked.
    Then I created a whole new template, created a simulation based on it, and it didn't work, and reported an error on the page that gave the following details.
    Ah!  Could it be that I didn't store my template in the "Templates" directory, but on my flash drive?
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.0.0; InfoPath.1; .NET CLR 3.0.30729)
    Timestamp: Fri, 8 Jan 2010 22:12:00 UTC
    Message: Object doesn't support this property or method
    Line: 81
    Char: 3
    Code: 0
    URI: file:///C:/Users/Marion/AppData/Local/Temp/cp4Temp/~CaC44C/standard.js
    Message: Object doesn't support this property or method
    Line: 81
    Char: 3
    Code: 0
    URI: file:///C:/Users/Marion/AppData/Local/Temp/cp4Temp/~CaC44C/standard.js

  • Mighty Mouse Wireless Right Click not working

    Hi Friends!
    I am having some difficulty getting my Right Click on my Wireless MM to work. I am aware that I need to keep my left finger off the mouse but it still does not seem to be working.
    Any thoughts ?
    Thanks !
    J

    Try replacing the battieries (or just taking them out and putting them back in). Forcing the connection between the Mighty Mouse and the iMac to break. Then put the new batteries, or the ones you were you using from before, in the MM.
    Re-link the Mighty Mouse to the iMac and try applying the settings for the right click function in System Preferences.
    Remember to mark as helpful or solved.
    -benny

  • Might Mouse and Right Click

    Well, I just recently got my MacBook Pro, and along with it a keyboard and the mighty mouse.
    I just converted from PC, so I'm very used to the right click. I know the right click is possible with the mighty mouse, but is there any way to make it more sensible to the right click? What I mean, is that sometimes I'll right click, but it'll do a left click. I've also noticed that in order for the right click to work, I have to completely lift my other finger off the mouse so it doesn't do a left click, and even that sometimes doesn't work.
    Is there any way to fix this?

    Well, right click as you normally would except lift your finger so as to not activate left click, there's nothing to it. As long as you lift your finger right click should work, your hand is unlikely to cancel it out, unless your fingers are on the squeeze buttons on the side.

  • Wireless Mighty Mouse Looses Right Click Functionality

    I am using a new Wireless Mighty Mouse (about one month old) With new batteries.
    Since I started using it, the (secondary) right click would stop function after repeated use. After many frustrating trouble shooting attempts, I discovered that the Right Click will work again if the mouse is left idle for about 15 - 20 minutes.
    I will like to know if this is a defect that's inherent in the Mighty Mouse system, and if so, has anyone found a solution to this problem or is there a fix?
    Any input would be very much appreciated
    Mac G5. 2ghz DP   Mac OS X (10.4.8)  
    Mac G5. 2ghz DP   Mac OS X (10.4.6)  

    Unfortunately my experience suggests no. I'm on my 5th (or is it 6th?) wireless Mighty Mouse now, and they've all behaved just as you described. The latest replacement was only a week ago. I suspect the only point in replacing it further times would be to demonstrate that you've tried all you can. As far as I can tell, my only recourse at this point is convincing Apple to refund me, which is a shame because I like the scroll ball design.
    I should note that I'm in Australia, in case stock has been slower to update here, but it shouldn't make a difference...
    I've noticed that the problem seems to occur a lot more frequently under hot conditions - room heater on, hot hands etc. Could it still think the left button is being touched because it's warm and/or sweatier than usual?

  • Mighty Mouse (BlueTooth) Right Click Problem

    Many times when I right click on the mouse, nothing happens.
    If I move the tab (on back on mouse) covering the blue tooth signal, apple reports mouse not found. The mouse then is found and my right click function works. I did this to reset the mouse to solve the problem but it does not make it a permanent solution.
    Do I have a defective mouse or is this a normal behavior with this mouse. I have used other mice before on Windows PC and no other wireless mice exhibits this behavior.

    "Laser illumination is considered more superior " ???
    Yes, I'm a 20+ year veteren of many Apple mice.
    Laser is clearly the superior choice over the optical in the MM.
    MM skips with detail moves, this Logitech mouse is precise and smooth.
    The Logitech mouse is wireless and has it's own combination charger stand/bluetooth(?) reciever that just plugs into a USB port. No batteries to worry about. Plus it's more egronomic and one can do a right click and a left click at the same time, unlike a MM.
    Apple's MM (in both forms) is clearly inferior, I've been through two already since they have been out. Being the Apple loyalist I am, I gave it a second try. But I need to get some work done without having to fight a greasy scroll pea and gunked up rollers with MM.
    In this hardware case Apple has been clearly bested, perhaps it was intentional, who knows? Apple's MM just plain under-performs.
    I'm almost positive you'll be happy with this Logitech brand/type of mouse.
    I'm sure if you shop around you can find it on sale, I did for about $30. A fraction of what a wireless MM would cost you.
    (no comp)

  • Setting up mouse to right click delete a page?

    After reinstalling Acrobat 9, I no  longer have the option to delete an individual page when I right click on the mouse. Is there a way to set this up again?
    Thanks!
    Catherine

    As George alluded to - you'd do this from within the Pages pane.
    If the option is not available then the PDF most likely has security applied that precludes this type of change to the file.
    Be well...

  • Magic Mouse stopped right clicking right after 10.8.4 update

    My computer just performed the latest update to OS 10.8.4 and now my "Magic Mouse" won't right click, even though right click says it's enabled.  Please help!

    Try deleting the .plist.
    You need to look in your user Library/Preferences for the .plist. Hold down the option key while using the Finder “Go To Folder” command. Enter ~/Library/Preferences.  Move the .plist to your desktop.
    Restart
    If it works, delete the .plist on your desktop. If not, put it back.
    If you prefer to make your user library permanently visible, use the Terminal command found below.
    http://osxdaily.com/2011/07/04/show-library-directory-in-mac-os-x-lion/
    You might want to bookmark the command. I had to use it again after I installed 10.8.4. I have also been informed that if you drag the user library to Finder it will remain visible.

  • Magic Mouse No Right Click and 10.10.1

    Updated to the latest version of OS X, and now both of my Magic Mice won't register a right (contextual) click. Is this a known bug? it's obviously not a device problem, given that neither of my mice have a problem. I'll have to look and see if my laptop is on the previous version and is exhibiting the same problem.

    Got imac 27" i7 yesterday loaded , migrated among other things clicked mouse preferences under system prefs and also clicked to enable right click on new magic mouse.  Ran fine until next day, got a hole bunch of keychain authorization accesses requests for icloud and it's products, everyone I had clicked the day earlier for the initial setup on this new imac, but also more to the point the right click on the new magic mouse was now not functioning.  So I check the mouse perfs again, and the right click was checked so unchecked and re-checked, but no fixes , still right click not functioning, right click was acting like normal left click on any browser links.  So I simply shut down, ( the iconic fix all solution no one wants to believe in ) and upon reboot functionality of right click on magic mouse came back. So I'll call it a fluke, if it comes back randomly I'll assume it's a possible bug in osx 10.10.2  as well as possibly 10.10.1?  Anyway that's it so far.

  • Mighty Mouse not right clicking

    I have noticed that my mighty mouse will NOT work on the right click function, particularly when I am on the desktop. If I am working in mail for instance, it WILL however allow me to right click .
    Are there settings or preferences that may have gotten corrupt?
    When on the desktop, if i rightclick, i get s slight pause, then the desktop re writes itself, yet no right click menu will appear.

    It seems like something is up with your Mac OS X.
    Did you try left click and ctrl before you bought your mighty mouse? Or did you always have your might mouse?
    Please try the following...go to applications>utilities>disk utility
    select your volume and fix permissions, then on the right click on check disk. This will take a couple minutes.
    Let me know if you get any errors. Those red type things
    Or did you do this already?

  • Bluetooth Mighty mouse wont right click

    I have set the right mouse button to 'secondary' in the preferences, however i still have to press ctrl to access the right mouse menu.
    How can I correct this?

    Hello,
    In addition to checking the setting as already proposed, do check how you are using the mouse.
    The Mighty Mouse uses sensors to detect which button you mean to press.
    There is actually only one button. So, based on where your fingers are, it will determine which button you meant to press.
    As long as you have a finger over the left button location, anything you press will be a left-button / primary button click.
    So, as a test, raise your left finger about an inch above the surface before you right-click. See if that makes a difference.
    The mouse could just be reading your left finger and assuming you mean a left click.
    I have to deliberately remove my left finger from the mouse anytime I want to right-click. Otherwise I always get a left-click.
    I hope this helps.

  • Magic mouse doesnt right click

    How to right click?

    Hi, Pastor GLR.
    To enable right-click, go to System Preferences > Mouse > Point & Click and enable Secondary Click. 
    Cheers,
    Jason H. 

  • Mighty mouse and right click???

    I have a mighty mouse and the right is set to a primary button however it doesn't function like a right click. i still have to press control to get the right click functionality?? HELP!!

    What is strange about my mighty mouse which also experiences similar issues is that you have to be careful where you are pushing it. My right tbutton is set as a control click but if I don't push it in the very upper right hand of the mighty mouse it behaves as a single click. The left hand button, as such, does not seem to be as sensitive to placement as the right hand one. For a long while I could not get it to work at all, until I figured out where I actually had to strike it.
    I had never used a mighty mouse until I purchased a new iMac a couple of weeks ago and just figured it was "operator difficulty" as I am far more used to a trackball than a mouse. I may still go back to one if I can't get used to this mouse. I think you really have to put your whole hand over the mouse to make it function properly and I tend not to do that.
    Does this help you with your issue? I am not sure, maybe there is some sort of difference in the way the mighty mouse works with new hardware?
    Good Luck! Wish I had more to offer other than trying carefully to position your handin difernt places and see if that helps.
    Message was edited by: Al Van Malsen

Maybe you are looking for

  • How Can I make A Dialog/Frame Transparent

    Hi I want to make a dialog or frame Transparent. Is it possible in java. Actually i want to add an gif image on the Frame container that image is in curve shape with transparency, and I want this transparency also on the Frame in the java application

  • PDF's from 2002 and 2003 are blank.

    I am using Adobe Reader 7 and Adobe Standard version 7.0.9 on a Dell D620 running XP SP2. When I try to open a pdf from 2002, it is blank. The file has size 50kb, but nothing in it. I have uninstalled and reinstalled Adobe, same thing. Can someone he

  • Want to always open torrent files with my torrent client but I do not see .torrent as a file association in Firefox

    using Tixati as my default torrent client and when I open a torrent file it automatically says save and I select open and the box where it says always open this type of file is greyed out. I looked in the extensions on Firefox but .torrent is not an

  • ITunes opening without being clicked on

    I did a quick search and couldn’t find any information about this problem, but if it’s already been addressed, just post the link. My problem: Ever since I updated to iTunes 5.0.1, iTunes will open unexpectedly without being clicked on. I can quit it

  • RE: (forte-users) XML Parser - Reading an XML document intothe D ocumen

    Hi Simakis, Your attachments explained the exact start i was looking for. Thanks a lot for sharing. Thanks Laks -----Original Message----- From: Simakis, Argyris [mailto:Argyris.Simakisdet.nsw.edu.au] Sent: Thursday, April 06, 2000 12:35 AM To: 'Nara