Right click drag 'n' drop

Dear everyone,
I am trying to create a Swing GUI where the right mouse button has a drag 'n' drop function for a particular component.
Does anyone know how I create a DragGestureRecognizer for a right drag mouse event rather than a left drag mouse event
Thanks in advance
Duncan Adamson
[email protected]

Hi
You can determinate which mouse buttons has been pressed using the method isPopupTrigger () of the classMouseEvent.
The mouseDragged method is always called when any mouse button has been pressed an the mouse moves while the button is still pressed. In the method you can filter out the events that comes from the left mouse button using the method (isPopupTrigger) I mentioned above.
Hope it helps
by
Leander Eyer

Similar Messages

  • I bought pages on the app store and have math type installed. However I am do not have the option to "Insert Mathtype Equations" either with right click or the drop down menus at the top of the screen.

    I bought pages on the app store and have math type installed. However I am do not have the option to "Insert > Mathtype Equations" either with right click or the drop down menus at the top of the screen. I also have OS Lion installed if this makes any difference. Please help!

    I assume but I can't check that MathType rely on the standard iWork applications location which isn't the one used by the mac App Store.
    Create a subfolder named iWork '09 in the Applications folder.
    Select the iwork applications which you own then drag them into the iWork '09 folder.
    You will be asked to type your password. Don't worry, it's normal.
    It's required because the System must store the infos describing the new location so that, if a new revision is delivered, mac App Store will be able to find the apps where they are.
    When this will be done, try to re-install MathType.
    I guess that this time it will behave flawlessly.
    Yvan KOENIG (VALLAURIS, France) mardi 13 septembre 2011 16:48:19
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • I have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    i have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    Greetings,
    What happens when you drag it?
    Make sure the drive you are moving the files to has enough available space to receive the file:
    Click on the movie file and go to File >  Get Info and note the "size"
    Check the drive to which you are moving the file to make sure it has enough available space: https://idisk.me.com/madisonfile-Public/web/finder-drive-available-space-and-for mat.html
    Also note the format of the drive you are copying too.  If it is not Mac OS Extended or FAT (not recommended unless you are taking it to a windows computer) then that may be the issue.
    Hope that helps.

  • Trackpad: hold right click +drag

    Just bought a Magic Trackpad and am struggling with this.
    I need to be able to hold down a right / secondary click and drag a box over stuff to select it. Doing this by holding your little finger down on the secondary click and trying to drag your first finger around is not fun at all. I have worked out how to instigate right click with two fingers, however it doesn't seem possible to keep it engaged and drag over an area, like a mouse.
    Any ideas?

    Hi
    would you mind telling me how do you do the right click drag? been trying to get this to work in games but can't.
    i can only drag items using 1 finger dragging.
    tks

  • X220 touchpad, Can't right click drag with more than one stroke

    1. Put cursor over a file or folder on the desktop.
    2. Hold the lower right corner of the touchpad (embedded right button)
    3. Drag with another finger (either hand)
    4. Lift off the dragging finger to reposition, then touch again, and it lets go of the icon, returning it to the original position.  (This means I'm not accidentally lifting off the right button. If I was doing that, the icon would remain where I moved it to.
    There are 3 ways to keep it from doing this:
    a. Use the right hard button above the pad.
    b. Press the touchpad button below the bend along the lower edge (As close to the edge as possible.
    c. Insulate the button pressing finger from the pad with folded paper, or press with a pencil eraser.
    b and c above show that it's the presence of a touch in the active area above the lower edge bend,  This touch, plus another touch being initiated in any other area of the pad interrupts the drag operation.
    The "tap and drag" settings have no effect on this.
    I just received the machine today after a 1 month order wait, and this is frustating enough to make me want to send it back.  As-is, it's nearly impossible to do right-click moves using the right pad button.  It becomes a 2-handed operation, one to hold the upper right button, and the other to do the dragging.
    Solved!
    Go to Solution.

    ok. 
    Control panel, "Programs and Features"   Uninstalled Thinkpad Untranav Utility  and driver items.
     Rebooted.  Confirmed that these applications ar eno longer present.
     Checked Device Manager, under Mice and Pointing Devices.  All it shows there is "PS/2 compatible Mouse"
    Results:
    1. Right click with touchpad right switch now generates a right click.
    2. Left, and right click drags with the touchpad lower switches now work, but there is a tendency for the finger touch to move the cursor off target before the press is completed.
    Suggestion to Synaptics.
    When pressing one of the touchpad switches, there will always be a finger touch on the touchpad sensing surface first, which will probably have a negative effect.
    To avoid this, any initial touch in the lower left or right areas should be ignored, and any cursor motion generated by that touch should be undone as soon as the switch closes.
    Downloaded latest driver and utility. 
    Installing driver (15.3.6.0 / 6hgx40ww) first, and restart.
    Result for driver reinstall:
    1. Right click with touchpad right switch works
    2. Right click multiple swipe drag works.
    3. Left click drag works, but ONLY if the clicking finger is touching the active area of the pad.  If you click too close to the edge, or use an object to press the switch, then the switch closure itself is not recognized.  The same issue exists for right clicks.
    Actually the behavior seems to be reversed now,  You MUST have a finger touch in the areas that prevented movement earlier to register the click event,  If you press the switch too high, or too low, or with an object, such as pencil eraser, then there's no click.
    So, with the new driver. I get acceptable dragging action as long as my finger isn't too far out of position.
    However, doing things like dragging a scrollbar with these buttons is still very frustrating, since the cursor tends to move off target before the switch closes.  This can be avoided by bringing the finger down onto the pad very quickly, to close the switch before any movement takes place.  A slow press will almost always move the cursor before the click.
    Installing the utility (7VGQ14WW) next.
    Still works, and the initial lag when trying to drag things is now gone. 
    So, aside for the cursor to move while clicking, I'd say the problem was fixed by the new driver. 
    Thanks for the fast responses, and to the driver devs for fixing it this quickly.

  • Firefox locks up when right-clicking and using drop-down menus

    I've experienced this problem with earlier versions of Firefox as well - sometimes when right clicking (like opening up a new link) or using a drop-down menu (like in Gmail) Firefox completely locks up and I need to control all delete shut it down and restart it manually.
    Any ideas?

    Locking as duplicate of https://support.mozilla.org/questions/929210

  • My wireless usb mouse freezes or gets stuck on right click/drag

    My wireless usb mouse has been getting stuck on right click and/or drag, or the right click just freezes and becomes unusable. Sometimes, my mouse jumps erratically and opens anything that the arrow crosses. I can't use my trackpad because it's broken, but the trackpad itself isn't causing any problems. My system preferences for mouse and trackpad are all fine. My bluetooth is turned off in accordance with the recommendations of people having similar problems. My anti-virus programs don't detect a macro virus or any other problems. Only restarting in safe mode temporarily solves the problem. Does anybody know how to fix this?
    Some people have suggested this may be caused by a swollen battery. However, my laptop is a somewhat more recent model and I don't have a portable/removable battery, so I can't solve the problem by taking it out and back in as some people have. Other suggestions?
    Thanks!

    Update: I've also tried repairing permissions and that doesn't help.
    I've experimented with other mouses just to see if there'd be a difference, but the problem is definitely with the computer. All plug-in or wireless mouses have the same results. Right click still won't work.

  • Interactive drag and drop (right clicks)

    I'm trying to create interactive training videos that utilize
    right-clicks as well as right-click drag and drops. I hope i'm just
    missing something. It's important for our training to include these
    abilities. Any suggestions?

    quote:
    Originally posted by:
    Captiv8r
    Hi katymeredith
    I'm sorry to hear you don't view Captivate useful. However,
    your post confuses me just a bit.
    What is the intent? If you want to just rant, I guess that's
    fine. But we are all users here just trying to help one another
    out. If you feel Adobe might be reading and making decisions based
    on user posts, you would be wrong. They seldom look in here,
    leaving it pretty much to us. This isn't a slam against them or
    even a bad thing. Just the nature of peer-to-peer support.
    I would like to address some of your assertions though.
    You said:
    The lack of proper right click functionality really makes
    Captivate a non starter for serious application training
    simulations.
    Fair enough. Yes, I agree right mouse click is an issue. But
    there are workarounds. Perhaps if the developers hear enough folks
    ask about it, it will change.
    As does the lack of mouseover transitions.
    I'm not sure what you mean. Captivate does have mouseover
    effects. Perhaps I'm misunderstanding what you mean by "mouseover
    transition". Just last night I posted an example to my site in
    order to ask another user if this is what was meant. Take a look at
    it and see if you disagree that this constitutes a "mouseover
    transition".
    Click
    here to see example
    As does the lack of proper keypress transitions.
    Not sure what you mean with that.
    As does the lack of proper text entry handling.
    Or that either. I use Text Entry boxes all the time with no
    issues. Maybe I'm doing it wrong.
    As does the fact that you can't properly pause a slide (keep
    your browser minimised for long enough, and you'll complete the
    course without having to do anything!)
    Hmmm, I've never seen a movie that has been paused by an
    interactive object just take off on its own again and simply
    complete with no intervention. Are you talking about a
    demonstration and not a simulation?
    Cheers... Rick
    Hi Rick
    I DO find Captivate useful - just really frustrating when it
    comes to developing interactive tutorial simulations. And what I
    find most frustrating is that it's a really really good product -
    but that doesn't quite do what I need it to do
    Hence the rant .....
    And what I meant was:
    1. Right click - probably the biggest gripe. Yes, I know that
    there are a few workarounds, but they all seem to require you to
    start coding, or work in some situations and not others; if I'm
    releasing a sim to 10000 people with varying setups I need to be
    absolutely certain that it'll work.
    How many applications do you know that don't use right click?
    So Captivate must have full right click interactions (and by that I
    mean - anything you can do with the left button you can do with the
    right button).
    2. Mouseover stuff. That example of yours looks pretty
    impressive - not quite what I had in mind though - I really mean
    transitions on mouseover to next slide, back to start of slide, to
    slide x, etc etc. - example: to activate a submenu by hovering over
    it, or to correctly show the change in a button's appearance when
    you move your mouse over it.
    I know you can do this with a rollover image - at least, you
    could if it didn't crash my PC when I tried to open the image
    - but that's so time consuming to have to manually
    grab and overlay an image for every mouseover. So again, I really
    need an 'anything you can do with a click you can do with a hover'
    interaction.
    3. Proper keypress interactions. I need to be able to detect
    a keypress, regardless of where the mouse pointer is or where the
    focus is. I know there's a partial solution involving text entry
    boxes and jiggling with the shortcut key, but there are pitfalls if
    the focus isn't in the text box. What I really need is an
    interaction that covers the entire slide and simply detects a
    keypress and gives me the same navigation options as a click.
    4. Text entry handling. Yes, there's the text box
    interaction, if you don't mind it not really looking like your
    actual application
    - but where's the pre entry text? Most apps will
    squirt some default (preselected and editable) text into text boxes
    - as far as I know Captivate won't - unless you klutz it using an
    image - which you then can't edit.
    And when you do edit the text in the box, the highlight
    colours don't match system settings. And you can't get the text to
    wrap properly according to the size of the text box - it sort of
    scrolls horizontally. And the multiple correct answers is good, but
    it won't give any leeway to spelling errors - other other sim
    builders will allow you to allow, say, 6 out of 8 characters as
    being enough to count as 'correct'. Oh, and there should be an
    option for Captivate to monitor typing and immediately spot the
    correct entry's been typed without waiting for an exit key or
    click.
    5. I might be about to admit I was wrong here ....
    - my understanding was that you couldn't keep a
    slide active for more than 3600 (?) seconds in a simulation, and
    that if the slide reached its maximum time it automatically went to
    the next one? Have to admit I haven't really experimented with that
    side of things.
    So are you saying that if you have a clickbox interaction
    that moves to the next slide, and the user doesn't click it, and
    you don't have a playbar, then the slide will just stay there. For
    ever? If so, that does make Captivate a bit more useful to me!
    Apologies if I've got the wrong end of the stick on that one.
    I know all this may sound like minor niggles, but it's very
    important to me that my sims look and behave as close as possible
    to the original app as possible. I'm more relaxed about demos -
    which is where I'm using Cap at the moment. In comparison to the
    sim builders you get with LMS systems it looks fantastic and is
    miles more intuitive - it's just that they tend to have all the
    interactions I really need - and Cap doesn't.
    If they can get what I've mentioned above into Cap 3 - or,
    hope against hope, 2.1 - I'll be abandoning traditional sim
    builders.

  • 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.

  • Since upgrading to 3.6.13, i can no longer open tabs using the extension, only by right clicking on the open page, and then not always. I've had to go to Chrome as i can't get firefox to work.

    Firefox worked great. I have been using it for years. When i completed the recent update to 3.6.13, the new tab button/extension little + box quit working. I can click and nothing happens. I right click, get the drop down menu but nothing works. I cannot open a blank tab or windwo as when i want to go somewhere new without closing windows i have open. The only way i can access a new tab is if i go to my bookmarks and open one then use that screen to go where i wanted to go. I've had to switch to Google Chrome to complete tasks i need done online, but it doesn't let me do a lot of what i want to.

    I'll try to make this clear. I USED to be able to left click on a hyper link and the hyper link would open in a NEW tab. Now for some unknown reason the hyper link by default opens in the same tab (window). I have to right click the hyper link in order for it to open in a NEW tab. (Yes, my 'tools'> 'options'> 'tabs' are set to "open new windows in a new tab." (Please no answers telling me to get rid of the Ask toolbar because I don't have one.) Thank you.

  • Using drag and drop in remote desktop on windows server 2008

    we running an application on windows server 2008 terminal services .. this application was support drag and drop functionality .. i understand that terminal services on windows 2008 is supported to drag and drop but is not happening !! even when i run remote desktop connection on this server the drag and the drop is not working !
    i need to enable the drag and drop for windows 2008 terminal services  ..
    Thanks in advance

    Hello Ayman,
    If your requirement is to drag and drop files between local and remote sessions, Danny is right. Drag-and-drop feature is not supported in Windows Server 2008-based Terminal Server, which is a by-design behavior hard-coded in the current version of the Remote Desktop Protocol.
    As a workaround, I recommend you to use copy-and-paste function instead of drag-and-drop. To enable the copy-and-paste between local and remote session, please enable the clipboard redirection in Windows Server 2008-based RDC. (In Windows Server 2003 environment, local drive redirection is needed.)
    Hope it helps. Thanks.
    Best Regards,
    Lionel Chen

  • Is there a way to undo the Ctrl+click​+drag BD expansion after the fact?

    I had an internet help make some simple code additions for me and in the process expanded my BD to a degree that it is very bothersome to work on.  She left me with a large gap in the center of my code, then saved it.  Is there a method that does the opposite of Ctrl+right click+drag?
    I basically need to move half of a state machine loop(s) and all included VIs on that half of the BD at once?  Don't want to manually move 20+ cases worth of VIs individually if I can help it.
    Now the real question - Why does an intern have a bigger screen than I do?!?!?

    ctrl+u  can be tuned in the LabVIEW ini to provide better results.  I have not found a magical setting for it yet.  (My BDs don't usually get too bad)  but I think a reasonable BD Clean-up is achievable with some persistance (try it- undo -reset- try it again)  Take snapshots along the way.  Perhaps even try 1 setting Optomized vertically and reset to optomized Horizontally and clean again.  (That technique seams to hold the most promise IMHO.)
    Now, What were you doing giving a chunk of code to an intern WITHOUT a style guide requirement and supervision?
    see post 17 here  You are not alone
    Jeff

  • Unable to drag and drop files into other locations

    As I clicked on a music file to drag into my iTunes, it would not allow me to perform that action.
    (I was able to click, drag, and drop a music file into iTunes a few seconds previously)
    This happened all of a sudden. The same thing happens as I try to drag a file to the trash, etc.
    What settings should I go into to see if everything is set correctly so I can re-perform the drag and drop action?
    I've already went into my Preferences..general settings...and clicked spring-loaded files and windows.
    Nothing changed once I un-clicked the box and re-clicked it.
    MacBook Pro 15'
    Retina Display
    Less than half memory capacity used
    Thank you!

    Try restarting and see if this fixes the problem.
    If no....
    Boot into the Recovery Drive by holding down Command R when restarting.
    Run Repair Drive and Repair Permissions using Disk Utility in Recovery.
    Restart
    Download and run the combo updater to refresh your OS X files.
    OS X Mavericks 10.9.4 Update (Combo)
    http://support.apple.com/kb/DL1755
    Post Date: Jun 30, 2014
    File Size: 958.2 MB

  • Captivate 2 right-click and drag and drop in simulation

    Captivate has been suggested as a suitable replacement for
    Authorware since the announcement that Adobe doesn't plan to
    continue with Authorware. I find myself in the position to put this
    to the test. I'm in the process of recreating a course that had
    been created in Authorware in a toolset comprised of Artuculate
    Presenter, Articulate Quizmaker, Articulate Engage, Captivate, and
    PowerPoint.
    The simulation created in Authorware has these feautures:
    -learner right clicks on items on screen to see a context
    menu then selects option from the context menu
    -learner drags toolbar and other items on screen to another
    screen location
    -learner selects item from Windows Start>>Program and
    other application menus. As the learner's mouse moves over the
    menu, menu options highlight and flyout menus appear even if
    they're not directly involved in the simulation
    -learner logs into course with an employee ID number. This
    information is stored and is used in the simulation in which they
    log into the system being simulated.
    Can I do any of these things in Captivate?
    I suspect I can simulate the flyout menus with a number of
    mouse over hotspots - exactly the way it's done in Authorware.
    However, I haven't found any way to do simulate the other items:
    -use of drag and drop where the learner performs the action
    -use of a variable value to check validity of what has been
    entered in the text field
    -use of right click to advance Captivate simulation.
    I'd appreciate any help you can give me. After all, I've
    heard many people claim that Captivate can replace Authorware.
    Thanks
    Grace Daminato

    Hi Grace,
    Captivate is indeed a replacement for Authorware, but only in
    the way that an Audi is a replacement for a Ferrari. They do the
    same basic job, but you need to do some after market modifications
    to the Audi to level the playing field somewhat.
    1) Flyout menus are indeed possible, if you're willing to
    create "rollovers" that display a picture of the expanded menu when
    the user mouses over. You are limited to exposing only first-level
    menus, however. Captivate does not allow for rollovers on
    rollovers, except possibly via Captivate 3's Slidelet
    functionality.
    ***EDIT***: You can also use Paul Dewhurst's rollover widgets
    to fake multi-level menu behavior. They are available from Paul's
    site here:
    http://www.raisingaimee.co.uk/index.php?option=com_content&task=view&id=24&Itemid=29
    2) Drag-and-drop in Captivate is currently only available as
    an add-in Flash object, each of which must unfortunately be built
    by hand in Flash. Adobe Community Expert Paul Dewhurst offers
    source files for such interactions on his website:
    http://www.raisingaimee.co.uk/index.php?option=com_content&task=view&id=13&Itemid=29
    3) Captivate has built-in checking of field values, but you
    are limited to hardcoded values only. If you need variable-based
    input checking, you must create it yourself in Flash and insert it
    as an animation.
    4) Right-click is possible in Captivate, but must be added
    manually. Captivate community contributor William Heinz has created
    a nifty right-click solution for HTML/SWF publication and Paul
    Dewhurst again comes to the rescue with a solution for .EXE-based
    output:
    HTML/SWF-based Output:
    http://www.adobe.com/devnet/captivate/articles/rightclick.html
    EXE-based Output:
    http://www.raisingaimee.co.uk/index.php?option=com_content&task=view&id=12&Itemid=29
    Unfortunately, making these modifications to Captivate files
    comes at a cost. First, there's the overhead of tracking down and
    implementing the custom enhancements. More importantly, Captivate
    has no way of "scoring" custom enhancements, so any such
    interactions will not be reflected in the user's reported results.
    If you're willing to live with these limitations, and a few
    others, Captivate can indeed be a suitable replacement for
    Authorware.

  • Is there any way to disable right click and drag and drop for photos on iweb?

    Re: protecting photos when using iweb as your web designer...
    Is there any way to disable right click and drag and drop for photos using iweb?  I have seen tutorials about creating a text box around each image - but is there a better way? 

    However, there is no way you can prevent someone from making a screenshot of the image as it is displayed on the screen no matter what application you use to create the web page.
    You can add a watermark to dissuade the casual "thief" but those who are serious about stealing the photo for their own use can remove the watermark with some effort.
    OT

Maybe you are looking for

  • Export To PDF Issue

    I have an old server (Windows Server 2003 x86) that I used to export lots reports as PDFs and it has worked perfectly.  The new server is now setup (running Windows Server 2008 R2 x64), and the export seems to have gone haywire.  I am using Crystal R

  • Parsing XML from a CLOB

    I was trying to check the well-formedness of XML in a CLOB. I have an xml file called Claim77804.xml. I was working on Building Oracle XML applications by Steve Muench. I created the procedure and it was created succesfully but it does not do what it

  • Why is the Address Book app slow to update my contacts?

    When I try to import my Google contacts into my Mac Address Book via vCard (.vcf) format, Address Book app takes an eternity to finish updating (like a half hour or more), during which I cannot do anything else in the Address Book. The last time I tr

  • WILL THIS HARD DRIVE WORK?!

    http://uk.insight.com/apps/productpresentation/index.php?productid=HTGA04X7D&cm_mmc=Froogle-_-GA-_-HT--HTGA04X7D&src=FRO1 The bit I'm worried about is the SATA 150, does that affect anything important? Thanks Nick

  • Incompatable print cartridge error message

    Hello.  I have a Photosmart C4435 and it has been wonderful....until tonight.  I have the correct HP ink cartridges installed.  I have tried all the tips in the same forum and still nothing.  It was printing just fine and then this error came up.   H