How to right-click

Hi, wanted to implement right-click and was wondering if anybody has worked on it and let me know what API to see. If MouseEvent, which one in it? Thanks in advance.

Hi ya, this isnt too diffucult to do.
The MouseEvent has a method getModifiers(). This gives
you the information about what caused the mouse event.
E.g, to find out if the right mouse was clicked on a mouse event, you can do this :
boolean anIsRightFlag=(aMouseEvent.getModifiers() & MouseEvent.BUTTON3_MASK) >0;
e.g:
private class MouseHandler extends MouseAdaptor
public void mouseClicked(MouseEvent aMouseEvent)
boolean anIsRightFlag=
(aMouseEvent.getModifiers() & MouseEvent.BUTTON3_MASK) >0;
That ought to do tha trick!

Similar Messages

  • In my MacBook Pro old 2006 late model Lion 10.7.4 how achieve right click from touch pad

    In my MacBook Pro old 2006 late model Lion 10.7.4 how achieve right click from touch pad?

    The multigesture buttonless trackpad was introduced with the Unibody Macs that came out in Late 2008. Successive models have built upon that, adding 2, 3 and more fingers to the gestures.
    Older models don't have the trackpad hardware needed to detect those motions and, hence, cannot support multigestures. Only resort is using combination of keys with the button, as disguise suggests.

  • How to right click, how to right click in ipad

    Does anyone know how to "Right Click" on an ipad. Are there possible keyboard controls.

    Tap and hold is the iOS equivalent to right-click. No, there are not any keyboard controls for this.

  • Super irritating windows problem - how to right click without drivers!!??

    i'm trying to help a friend install x64 windows 7 on her "new" macbook. i say "new" bc here in argentina they are a bit behind on the latest models. we have a late 2009 macbook.
    she bought this computer before and i successfully installed windows 7 x64 on it, but she changed back to a pc, then BACK to a macbook. same model.
    for some reason, the install of windows was flawless this time, despite using the same windows disc and the same model macbook.
    ANYWAY, i'm at the point where i put in the install dvd to install the windows drivers, and i get the message "x64 not supported on this machine"....
    i've found a workaround online, where i can go into the bootcamp64.msi file, etc...
    but how the h.e.l.l. do you right click without the bootcamp drivers installed????
    this is windows 7, which is a piece of krap, but it's what she bought....
    this is super annoying. anyone have any ideas?
    i need to right click so i can install the drivers so that the trackpad can do what right click is supposed to do.
    thanks...

    hey, thanks for responding....
    that didn't work, because i'm on a trackpad that doesn't have the bootcamp drivers installed, but in order to install the drivers in windows 7, it requires a right click to access the drop down menu to "troubleshoot compatibility" of the bootcamp x64 driver...
    but after some digging around, i found that the work-around for right-click WITHOUT drivers is the following:
    shift-f10 (click)
    again, thanks for responding. i love apple forums, usually people willing to help others, especially when it comes to lame windows compatibility.
    hopefully someone who encounters this same b.s. will find this post.
    take care!

  • How to right-click, open with, applescript

    how would I modify the following code in such a way that I can run it from the right click of a folder and choose 'open with' and select my script/application? I want to run the script from the folder rather than having to run the script and select the folder.  I want to use open with because programs like Path Finder and Fork  Lift do not show the services submenu.
    set this_folder to (choose folder with prompt "Pick the folder containing the images to process:") as string
    tell application "System Events"
        set these_files to every file of folder this_folder whose name does not start with "." and (file type is "TIFF" or file type is "JPEG" or name extension is "tiff" or name extension is "tif" or name extension is "jpeg" or name extension is "jpg")
    end tell
    repeat with i from 1 to the count of these_files
        set this_file to (item i of these_files as alias)
    end repeat

    the easiest way to do this might be two convert this to an automator service - open automator, choose Service, tell it to receive the selected folder(s) in the Finder, then add a Run Applescript action.  You'll need to modify the script slightly:
    on run {input, parameters}
              repeat with each_item in input
                        tell application "System Events"
                                  set these_files to (every file of folder each_item whose name does not start with "." and (file type is "TIFF" or file type is "JPEG" or name extension is "tiff" or name extension is "tif" or name extension is "jpeg" or name extension is "jpg"))
                        end tell
                        repeat with i from 1 to the count of these_files
                                  set this_file to (item i of these_files as alias)
                        end repeat
              end repeat
              return input
    end run
    but after you've saved it you can access it from the Services submenu of the contextual menu

  • How to right click chart and copy

    In my page I display charts which I need to be copied when the client right clicks and chooses "Copy image", to paste in other tools like MS Word. However, i'm not being able to do it, what gets pasted in Word is just a blank picture. If I actually
    try to copy it to Paint, the picture is copied correctly. What am I doing wrong?
    Here it is my web.config file:
    <?xml version="1.0"?>
    <!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    -->
    <configuration>
    <appSettings>
    <add key="ChartImageHandler" value="storage=memory;timeout=20;" />
    </appSettings>
    <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
    <remove name="ChartImageHandler" />
    <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST"
    path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </handlers>
    </system.webServer>
    <connectionStrings configSource="ConnectionStrings.config"/>
    <system.web>
    <httpHandlers>
    <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    validate="false" />
    </httpHandlers>
    <customErrors mode="RemoteOnly"/>
    <compilation debug="true" targetFramework="4.0">
    <assemblies>
    <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </assemblies>
    </compilation>
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
    <controls>
    <add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" />
    <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting"
    assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </controls>
    </pages>
    </system.web>
    </configuration>
    In the charts option, either on asp page or the code behind, I did not set any option regarding chart rendering, so it's all by default. Thank you in advance.

    Can anyone tell me... if Apple is doing something differently on their website with their ads to prevent downloads
    Yes and no. Yes, they have changed the manner in which content is displayed but it is more likely so that the content can be viewed in a custom floating, borderless "player" having on again/off again controls rather than an attempt to prevent your downloading the ads since they haven't really tried to conceal the movie URLs.
    Can anyone tell me... How I can restore this functionality again (or find a workaround)?
    It is unlikely you will be able to "restore" this functionality unless the site programmer includes this capability or you are using an older browser not compatible with the new coding techniques and the page is coded for its playback use. On the other hand, there are workarounds. The basic strategy is to recover the URL of the movie file. This can usually be done by simply reviewing the page source code to locate it. Another possibility would be to copy the URL as it is initially displayed in the Safari "Activity" window as it cashes to memory. Once you have the resource URL, you can either download the source file directly using the Safari "Downloads" window or opening the URL in either the QT X or QT 7 Pro Player for viewing and/or saving.

  • How come right click can't work in IE 7.0 AND IE 8.0

    I published CP project with right click to a folder, then I uploaded it to the web server, in IE 6.0, it works OK, right click does function correctly. However, when I tested it in IE 7 AND IE 8, right click doesn't work at all. I also tried right click in FireFox browser, it works quite OK. How come that right click funtionality can't work well in IE 7 AND IE 8? Could it have anything to do with the security setting in IE 7 and IE 8? If so, how should I change the security setting?
    PS: for both IE and firefox, I installed flash player 10.

    I assume you're using C4?
    The folder containing your published files has to be a "trusted" Flash site.  It's an absolute pain!  Here's where you set this up:  http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l
    Hope this helps.
    P.S.  By default, the My Adobe Captivate Projectgs folder, buried in your My Documents sub-sub-sub folders is a trusted site.

  • How to use folders in 'Movies'' and how to right click a file on the ipod?

    Does anyone know how to create folders in the Movies category on the ipod? I would like to get rid of the huge list of movies and create some structure in this category. Is there also a solution to this problem without the need to synchronize video between ipod and computer?
    How do I "right click" a song on my ipod for info? Probably a stupid question, but when I press forward (right click?) on the ipod it just starts playing the next song...

    The "right click" refers to using the mouse on a song displayed in either the iTunes library or the iPod song list in iTunes when it's connected to your PC. It doesn't mean click on the right side of the click wheel.

  • Using external mouse with MacBook Pro - how to right-click in Mac OS X?

    using windows at work led me to become dependent on right-clicking
    can i do this on my Mac? I use a mighty mouse with my laptop.
    thanks.

    Hi Pubikars,
    To have right-click functionality enabled in Mac OS X, open “System Preferences”.
    Select “Keyboard and Mouse”, then select “Mouse”.
    Set the right side button to “Secondary Button”.
    I hope that this helps.

  • How do "right click"? on a Mac?

    I'm still a pretty new Mac user. I have what may be a dumb question, but I'm stumped.
    Is there a way to do the equivalent of right-clicking on a PC? I am thinking specifically of when I'm on a Web page and I want to right-click a link and save to my hard drive.
    I just can't figure this out, as my mouse has no buttons
    A friend said you twist your mouse quicly to the right and it brings up a right-click type menu, but I'm having no luck with that outside of a sprained wrist.
    Thjanks.

    "Is there a way to do the equivalent of right-clicking on a PC?"
    Yes. Just hold your finger down on the mouse until a contexual window pops up with a list of "things to do". One of them will be "Save Link As.." which is the one you want to click on to save to your HD.

  • EZ Questions: How do I right click and screen shot in Windows xp

    When I run Windows XP on my Macbook Pro how can I set up the track pad or use the track pad to Right Click? I can't figure out how to right click something.
    How do I do a screen capture? Do I need to download a Windows screen capture application?

    Hi knotq,
    the equivalent of the 'Print Screen' key on a Windows keyboard is 'fn-shift-F11' combo on a MacBook Pro.
    See here: http://support.apple.com/kb/HT1220
    There are better screen capture programs out there, do a google.
    Here is one of many http://www.gadwin.com/printscreen/
    Right-clicking should be done by placing two-fingers on the trackpad and then click.
    http://docs.info.apple.com/article.html?path=BootCamp/2.0/en/bc1142.html
    Regards
    Stefan

  • How do I "right click" in Mountain Lion?

    I'm attempting to create a public link to a file in Dropbox.  I apparently don't know how to "right-click" the file to obtain the option of "Copy Public Link".

    In System Preferences > Mouse make sure the secondary click box is check & is set to click on right side.

  • How do I right-click in PlayBook's browser?

    javascript & flash both support right-clicks and several sites that I regularly use have both.  But, I can't seem to figure out how to right-click in the PlayBook browser.  Press and hold brings up a context menu (cut & copy & open in new tab for links), but doesn't call the javascript; Flash does nothing at all.
    Solved!
    Go to Solution.

    Thanks that worked!
    knottyrope wrote:
    Use Shift + F10 key to open right click context menu?

  • Right click issues on Satellite P50T-B

    I don't know how to change the setting so that I can have a traditional right click on the touch pad.
    I know that you can press with both fingers to do some functions like a right click, but when I am using Microsoft word or Facebook I cannot figure out how to right click a misspelt word and see how its spelt. When I right click a work in word or facebook the cursor changes to the scrolling.
    Please help, it is getting really annoying taking a minute to figure out how to spell a word because I cant right click
    Thanks!

    Hi Thomas.
    Go to control panel -> mouse
    Here you would find some standard options to control the USB mouse and touchpad.
    In order to find some advanced touchpad control settings, you should go to last tab.
    I guess your notebook supports ELAN touchpad and therefore the last tab should be called ELAN
    Within this tab you have to click on Options button.
    Now new window (ELAN smart pad) would open providing different control options.
    In One finger tab you would find the option to control the tapping, clicking, drag and drop, edge scroll.
    Additionally you find the tabs for Multi-finger and Additional features.

  • Using link event on textarea with right click

    I added 'event:' to the links in a textarea.htmlText because
    i need to be able to track when the link is clicked, but
    unfortunately this makes the link not work if they try to right
    click it to open it in a new window, it also doesn't track the
    click, the 'event:' shows in the new browser window url. Is the a
    way to disable rightclicking on links in a text area?

    Hey there,
    Make sure you have all the proper drivers installed for Boot Camp, which at this point you may have already done. Then below, is an article from Apple explaining how to right->click using BootCamp Windows. Hope this helps.
    http://docs.info.apple.com/article.html?path=BootCamp/2.0/en/bc1142.html
    B-rock

Maybe you are looking for

  • Using Nikon D5200 NEF images in PSE

    Hi I currently have PSE8 which will not read the NEF images from my Nikon D5200. I know that I can use the Adobe DNG Convertor 7.3 to convert them to DNG outside of PSE8 then work with the DNG images in PSE8. However, I would prefer, if possible, to

  • Job Publication doesnt get changed data in Job Posting through workflow.

    Job Publication is not picking up the changed data in the Job Posting/Requisition through workflow. When I am changing the data in Job Posting and release it manually the changed data gets reflected in Job Publication but if I am releasing the Job Po

  • Link to Top in Different JSP

    There are three JSPs in a main JSP. Header Details Footer In my footer there should be a link. when i click that it should go to top. It is just like . But i think in above case JSP will be resubmitted. I dont want that. JSP should not be submitted.

  • N900 x i-phone 3Gs 32Gb - real competition or just...

    Hi, I’m just a guy looking for answers beforehand to a new acquisition, I’ve sent this"e-mail" to Nokia support and up to now, no answer at all, I don’t know if it is a "taboo", but as consumer at least I would like to understand those points, and ma

  • Debug IP Policy on Cisco 4451-X ISR Router

    Cisco 4451-X ISR router is running IOS XE Software version 03.13.00.S.  I am trying to run the command "debug ip policy" on the router to verify if the traffics are policy-routed correctly, but I get no output displayed on the router for the debug co