Can a right mouse click be simulated from keyboard ?

When a cell has focus and I click the right mouse button, I pop up a JPopupMenu. I would like to simulate a right mouse click using some keystroke combination from the keyboard. Is this possible ?

You can Grab key pressed even then try to create new Mouse right click event from there somethng like that
MouseEvent= new MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger)
source - the Component that originated the event
id - the integer that identifies the event
when - a long int that gives the time the event occurred
modifiers - the modifier keys down during event (shift, ctrl, alt, meta)
x - the horizontal x coordinate for the mouse location
y - the vertical y coordinate for the mouse location
clickCount - the number of mouse clicks associated with event
popupTrigger - a boolean, true if this event is a trigger for a popup-menu
You can pass Id it hing that will decide wheather it is right or left click

Similar Messages

  • Disable right mouse click and IE6 galleryimg on af:objectImage

    hi,
    Could anyone tell me how I can disable right mouse click and IE6 galleryimg on af:objectImage?

    Hi Jagannath,
    Try like this.. Double click on application -> go to parameters tab, in parameters give WDDISABLEUSERPERSONALIZATION and value 'X'. It will disable user settings, you get window when right click but no user settings available.
    check this for more help...
    http://help.sap.com/saphelp_nw70/helpdata/en/7b/fb57412df8091de10000000a155106/content.htm
    Thanks,
    Kris.

  • Diable "open dialog box" on right mouse click so I can use l mouse to advance to next slide and r mouse click to "go back."  How in PP 2010 for mac????

    I do presentations in PP10.  I am new to macair, and used to Windows.  HOW DO I DISABLE THE "OPEN DIALOG BOX ON RIGHT CLICK"?  I would like to use L mouse to advance slide, and R mouse to go back.  The default is to use R mouse to open dialog box.  I can disable this by unchecking the box in "advanced" on the PC.  How do I do it with the Mac????
    Thanks
    hacmd

    Hi Rod,
    As originally stated in my opening post, the SWF is to be inserted into an Articulate '13 slide (what I called an aggregator originally - I tried not to bring them up since I don't want the chatter about "There's your problem - using Articulate"! ).
    Recall that posting this published file to our LMS did not allow right-mouse click functionality as the flash player menu just gets in the way.
    If I insert the captivate 6 files into Articulate as a Web Object (referencing the entire folder with html, htm and assets, and then posted to our LMS, and it DOES allow RM click operations in both IE and FF (although no sound on the Captivate slide in FF). But this is not what we want to do as this introduces 2 navigation controls (the Captivate one and the Articulate Player).
    Why must anything be posted to a web server for this functionality to work?
    I am able to go into the Captivate 6's published folder, and launch the Captivate demonstration by simply double clicking on the index.html file and this works great in both FF and IE after changing the security settings for flash.
    Again - I can not believe I am the only one out there trying to use the right-mouse click feature to do a software simulation by embedding the Captivate SWF into an Articulate '13 project.

  • When I use Mail and want to paste an emailadress with a right mouse click in the adres field this doesn't work, ofcourse cmd V  works. How can I solve this

    when I use Mail and want to paste an emailadress with a right mouse click in the adres field this doesn't work, ofcourse cmd V  works. How can I solve this

    YAY!  That did it.
    Thank you so much.
    And a Very Happy and Prosperous New Year to you!
    bonnie

  • How can i call mouse click event from keypress event???

    How can i call mouse click event from keypress event???
    I want same GUI changes to be occured at key press.....i.e . button going down & comming up.....
    for calculator

    Put all the code that happens on those events into a method. Then call that method from both events.

  • CAN NOT write text on some webpages like googlemail if use right mouse click, last copied text gets pasted in against my will Macbook pro: OSX 10.6.8 Firefox,

    I would like to use right mouse click for spelling translate but when I click it pastes the last copied text in instead of opening the menu it happens on many webpages.
    thanks for help
    Elkan

    still having same problems.
    is this the only way to get support from firefox? where are the developers that write the code? or someone directly responsible for the product? i don't expect an end user to help but this is ridiculous. the windows version works fine but the mac version doesn't. i'm running both on the same machine so it's not the hardware (running windows as a virtual guest in parallels).

  • Right Mouse Click Error Message

    I have captured a software simulation using Captivate 6 which requires the user to advance to the next slide via a right mouse click (RMC). I have the accessiblity features switched off. However from the LMS when I RMC I get an error message refering me to the course .htm file.
    Has anyone else came across this and if do how can I fix it.

    You should ask in Help with using Adobe Muse CC
    This Cloud forum is not about using individual programs
    This Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Right mouse click in word for mac

    i just bought a g-5 intel core duo and i love it. though i am an experienced mac user this is my first time with the mighty mouse and i miss the right mouse click when i am in word for mac (2004): with my old mouse i could right mouse click on a word and get immediately into the thesaurus/dictionary, whereas with the one-click mighty mouse i have to go to tools, then thesaurus or dictionary, which takes several clicks. is it possible to program the mighty mouse so that i can get with one click to the thesaurus dictionary? thanks in advance. mmvski from amsteram

    Are you trying to do this in Word for Mac or Word for Windows?
    The Mighty Mouse buttons can be programmed on Mac OS X using Apple menu --> System Preferences --> Keyboard & Mouse.
    On Windows go to Start --> Control Panels --> Mouse.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.8)  

  • Acrobat tries to reinstall when I right-mouse click - vista 32 bit

    I bought and installed Adobe Master Suite. Now, whenever I right mouse click my start menu (or any icon for that matter), I get a message saying Acrobat needs to be configured, at which point Acrobat begins to reinstall itself. WOW. I must say i have not seen a bug like this since circa Windows 95. Makes me wonder how extensively Adobe tested Acrobat 9 with Vista 32 bit. Yikes. What next ? BSOD's?
    Snarkiness aside,  can anyone tell me how to fix this problem? I only found one instance in Google search, and of course it was one associated with the dreaded experts-exchange.com (we can only pray they will hire a careless sys admin who will accidentally nuke all their servers).
    A few other posts said the only way to fix this issue is to re-install (tried it, doesn't work), or remove some registry keys to remove the Acrobat entry from the right mouse click context menu (which I don't want to do)
    HELP
    Thanks all
    Mark

    I'd recommend uninstalling Acrobat. Run the Microsoft Installer Cleanup tool to remove all remnants of Acrobat and then re-install.

  • No right mouse click in Safari?

    Hi-
    When I right mouse click (Mighty Mouse) in Safari no popup appears. (The one that would have "Back" - "Forwar" - "Reload", etc.)
    In Firefox right mouse click brings up this popup as does IE.
    Am I missing something, can I get this to work in Safari?
    Cheers,
    D.

    What happens if you control-left-click. This should bring up the same contextual menu as a right-click. If that doesn't work then I would try creating a new user account, launch Safari from that account and try the right-click. If the new user account works then you have a corruption issue in your own account. There is no option in Safari to turn this action on or off. Contextual menus are part of the operating system itself.
    I have found that the right-click menu in Safari depends on where your cursor is when you right-click. If I right-click over graphic areas I sometimes get a different menu relating to images or graphics.

  • Right mouse click problem on T60p with WIN-XP SP3

    I have T60p model. After upgrading my WIN-XP to SP3 i am facing problem with Right mouse click. Right mouse click starts working as left click. Initially when I reboot my machine it works fine but after sometime I start getting above mentioned problem. I even installed the latest mouse drivers(ultranav) from Lenovo site. Has anyone got this same problem? Looks like Lenovo should fix this problem.
    Thanks in advance. 

    This isn't necessarily a driver problem, and it's not necessarily Lenovo's problem.
    The primary and secondary mouse buttons can be switched by a program you are running, although it wouldn't seem that this is very likely.
     Windows Start Menu | Settings | Control Panel | Mouse. This will take you to the Mouse PropertiesTabbed Dialog. Click on the Buttons tab. There you can see if the primary and secondary buttons are truly switched. If so, you can switch them back, without rebooting the machine.
    Centex

  • Right Mouse click again

    I post my problem again, cause i haven't found any solution yet. i want my button to react different on a right MouseClick or left MouseClick. The problem is that an ActionListener only reacts on a left left MouseClick. Otherwise you can't add a MouseListener to a JButton. when i add a MouseListener to the Container that contains my Button the MouseListener only reacts if the Cursor is over the container and not over the Button.
    So, what's th solution?

    If I understand maybe this will help a bit.
    Right mouse click is easy in swing use the SwingUtilities class
        public void mousePressed(MouseEvent event) {
                if (SwingUtilities.isRightMouseButton(event)) {
                  // right click stuff goes here
                } else {
                  // left click stuff goes here
          }I think in awt you can use: mouseEvent.getModifiers from Class InputEvent
    but I have never used this.

  • Call by using the right mouse click

    From jabber on my windows pc i want to be able to call from our directory (or my personal contacts) by using the right mouse click.
    Who can advise the way i can make this possible?

    Hi Peter,
    If I understand correctly you want to have telephony capability in Jabber for Windows? Please check the section
    Set up unified communications audio and video in Jabber for Windows administration guide.
    Thanks,
    Maqsood

  • Problems using right-mouse click functionality in a Captivate added to Articulate?

    Has anyone experienced any problems using the right-mouse click functionality? It's working fine when I preview the project, or view the published Captivate SWF or HTML file, but it's not working when I insert the published Flash file into Articulate and then try it in the published Articulate. I'm using AS2 and Flash Player v10. When I try to right-click it's bringing up the Flash Settings menu you can click on. I've been into my Flash Manager and told it to always allow content from the folder my Articulate is in but that hasn't made any difference. I'm viewing the Articulate on my C drive and I have read that that can cause problems - does anyone have any ideas? If I left-click it recognises it as a click but doesn't recognise it as the correct click action, so just keeps on bringing up my failure caption and won't allow me to progress.
    Thank you!

    Hello,
    The right-click functionality in Captivate is 'in' the JS-file, that is called by the HTML-file that will open the SWF. But if you insert the SWF-file in Presenter (Articulate or Adobe) the right-click functionality will not be there, because you are not using the JS-file. BTW: this was also explained in the thread where you posted this same question before. Please, do not post the same question in 2 different threads
    Lilybiri

  • I am using FireFox 4. Where is the "Bookmark All Tabs-" feature. I would like to save my Tabs for a later session. The selection is not on the menu when I right-mouse click or go to the Bookmarks feature of the Menu.

    Missing "Bookmark All Tabs…" feature which was in previous versions of FireFox 3.x. If you right-mouse click on a neutral part of the Browser window, there would be choice of "Bookmark this page" or "Bookmark All Tabs…". I have been unable to find it either in the sub-menu or the BOOKMARK selection from the Menu Bar.

    What do you mean by Tabs sub-menu is it right-clicking on a tab ?
    I know that "ctrl-shift-D" still work.
    I know that a right-click on a tab gives the "Bookmark all Tabs" function.
    But I would like to see it back in the Bookmarks menu. (which is its logical place)
    Because today the choice only disappeared from the menu as it is still reachable through keyboard shortcut or through mouse right-click on a tab
    but tomorrow it will totally disappear and personally I don't want that as this is one of my favorite functionality.
    Tank you for your understanding !

Maybe you are looking for

  • Why do I have to keep saving my PDFs as enabled for commenting in Reader?

    As part of my review process, I create a PDF, enable it for commenting in Reader, send it to reviewers, receive comments back from them, reply to the review comments, and send it back to the reviewers so that they can see the replies and make further

  • SUP input parameter Clarifications

    Hi all, I have a scenario to pass the input paramter to RFC and get the output list. What is the best way to do it? Can any one please explain about the sync parameter as the load paramter concepts and steps?? Regards, Ram

  • DateTime Picker

    I have an interactive form where the user has to fill in the date and time of an incident. Is there javascript or FormCalc code availabe in these forums or online that can achieve this? Or is it best to use the Date field object? That allows the user

  • FaceTime iOS 8 compatibility with prior versions

    my mom and I bought our iPad minis at the same time.  I have upgraded to iOS 8 while she still has iOS 6.   We can no longer FaceTime each other.  The devices can dial each other but when you answer the connection never establishes and ultimately dis

  • How to know whether ipod touch is with ios 5 or ios 4

    how to know whether ipod touch is with ios 5 or ios 4