Tried invoke leftmouse click on rightclick. Not work-clicked but not select

I want to be able to right-click and have it select something. So I tried invoking a left mouse click every time I right click, but that doesn't work - nothing is selected unless I actually click the left mouse button. Does anyone know why?
My Code: (I tried two ways)
//VERSION 1
MouseEvent me = new MouseEvent((Component)evt.getSource(), evt.getID(), evt.getWhen(), InputEvent.BUTTON1_MASK, evt.getX(), evt.getY(), evt.getClickCount(), evt.isPopupTrigger());
((Component)evt.getSource()).dispatchEvent(me);
evt.consume();
//VERSION 2
MouseEvent me = new MouseEvent((Component)evt.getSource(), evt.getID(), evt.getWhen(), InputEvent.BUTTON1_MASK, evt.getX(), evt.getY(), evt.getClickCount(), evt.isPopupTrigger());
Toolkit tool = Toolkit.getDefaultToolkit();
EventQueue evQ = tool.getSystemEventQueue();
evQ.postEvent(me);
evQ.dispatchEvent(me);
me.getComponent().repaint();

how am i supposed to kick off a mouse-click event? I just read that dispatchEvent only works for ActiveEvents and they have to have the dispatchEvent method or else it just ignores this call. MouseEvent does not have dispatchEvent, so it does nothing. So how can I kick off a mouse-click?

Similar Messages

  • Bluetooth not working, activating but not connecting

    My blackberry 8310, when I turn on the bluetooth it finds my other devices (macbook and Samsung mobile ) but when I try and send to send files to my blacberry from these devices it keeps coming up, connection failed.  I'm not sure what I'm doing wrong?  Does anyone have any ideas.
    Many Thanks

    Transferring a file from your PC ( or other BT enabled device) to your BB is not "passive" once paired.  You have to go into the appropriate program and from the program's menu select Receive using Bluetooth.
    So if you are transferring mobile to mobile...pair them
    Sending unit "Send using Bluetooth"
    Receiving unit "Receive using Bluetooth"
    Sending unit of course can be a PC with BT capability.
    Remember just because they are paired doesn't mean it will receive it automatically.
    If sending from computer I find it eaier to connect via USB and drag and drop.....
    Наглый пес! Вы должны быть благодарны мы даем Вам возможность проживать в нашем мире!
    BB 9550 Verizon OS 5.0.0.1015 My Storm My Blackberry My Lifeline
    If there is a Theme on my Blackberry, Hedone it!
    If someone successfully helped you with an issue, say thank you by clicking "kudos" in their post and clicking the star.
    Antiquis temporibus, nati tibi similes in rupibus ventosissimis exponebantur ad necem
    If your issue has been solved, please mark the post that solved it for you!

  • TS1718 I tried to update, did not work, unintstalled did not work.  Now when I try to install i get error message "The feature you are trying to use is on a network resource tha is unabailable.  Looking for itunes64.msi path.

    I tried to update, did not work, unintstalled did not work.  Now when I try to install i get error message "The feature you are trying to use is on a network resource tha is unabailable.  Looking for itunes64.msi path.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I have an old iPhone 3Gs with software version 4.3.5,  I am trying to use it again, and it works fine, but I have not been able to update the software.  Every time I try, I get the following message: "there was a problem downloading the software for the i

    I have an old iPhone 3Gs with software version 4.3.5,  I am trying to use it again, and it works fine, but I have not been able to update the software.  Every time I try, I get the following message:
    "there was a problem downloading the software for the iPhone, the network connection could not be established".  This happens even though I have a working internet connection.
    Besides that, all the other functions work properly, even synchronize apps and library.
    Will I be able to update the software?

    look around the forum tons of people repport that they can't update
    makes you suspect that apples update servers can't meet the depand of too many users
    trying to update at once

  • My Ipad 2 is not working. Is not tuening On. I dont' know what's happening. I'm trying to turn on and I have no ansewr. Screen is out, nothing come to the screen.

    My Ipad 2 is not working. Is not turning On. I dont' know what's happening. I'm trying to turn it on and I have no answer. Screen is out, nothing come to the screen. Battery is ok at 60% charged when I turned off last time, and after minutes when I turned on, it not worked anymore. If somebody have an idea what may happenning, please let me know.

    I don't know what yu mean by "screen is out" but try this.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • IPod model A1059, freezes, unresponsive to all click wheel entries.  Reset does not work.  Does not show up in ITunes or on windows explorer.  What is the problem and how do I fix it?

    IPOD model A1059 appears frozen and is unresponsive to all click wheel entries. Reset does not work.  Does not show up in ITunes or in Windows Explorer.  What is the problem and is there a fix?

    If you are unable to reset the iPod (assuming the hold switch is not in the On position either), then you'll have to let the iPod's battery fully drain. Then connect it to a charger and leave it to charge for a couple of hours.
    B-rock

  • I can connect my Iphone 6 and Ipad Air to my Bose Soundlink but not my IMac.  I have tried all the usual solutions but nothing works.  It has worked recently but not in the last week. Help

    I can connect my Iphone 6 and Ipad Air to my Bose Soundlink but not my IMac.  I have tried all the usual solutions but nothing works.  It has worked recently but not in the last week. Help

    make sure it's not being connected to by any of the other two
    one can only connect 1 device at the time and just by waking up sometimes a headset connects to a device
    automaticly
    then forget the bluetooth device in OS X and put the headset in pairing mode / discovery mode and connect with it once again with the mac

  • I upgraded my iphone 4 OS yesterday to ios 5, today morning my phone is not working, i am not able to click any button and also its not allowing me to switch off the phone and restart. Anyone having similar issues

    i upgraded my iphone 4 OS yesterday to ios 5, today morning my phone is not working, i am not able to click any button and also its not allowing me to switch off the phone and restart. Anyone having similar issues?

    From my post on what seems like the same issue (found here: https://discussions.apple.com/message/21087892#21087892)
    Take the following steps:
    1) while connected to wifi, toggle off then back on the Show All Music and iTunes Match options shown in my original post. Important: I did this step before, but wasn't connected to wifi, and my music disappeared. Subsequently, I connected to wifi and turned off and then back on those options and everything came back though it was grayed out and my only option was to download music.
    2) To get streaming over cellular back, go into Settings>General>Cellular and scroll down to the "Use Cellular Data for:" options and make sure the iTunes option is set to 'On'
    The above steps will bring back the streaming capability which seemed to go away when you update to 6.1. It didn't ACTUALLY go away, but something about the update toggled off the iTunes option in step 2 above.
    I did a final test by turning off wifi, opening Music app and selecting a song. It played successfully without downloading! Crossing my fingers, but I think I'm good to go!
    Hope this helps!

  • I have iPhone 3G with ios 4 but now i update new version and my phone is not working.it is not activating..when i tried it says please insert sim and try again..any one plez hepl.

    i have iPhone 3G with ios 4 but now i update new version and my phone is not working.it is not activating..when i tried it says please insert sim and try again..any one plez help

    Try this article if you haven't already
    This is the only possibility that came to my mind when reading about your issue:
    "If an iPhone, iPad, or iPod touch is not recognized in iTunes on Windows, the Apple Mobile Device Service (AMDS) may need to be restarted"

  • HT1904 How can I get a refund for apps in the apple App Store that do not work and are not what they said they wer

    How can I get a refund for apps in the apple App Store that do not work and are not what they said they wer

    You've tried deleting and redownloading them and seeing if they then work and tried contacting the developers ? If you have and they can't/won't help then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Aero in Windows 7 64bit home premium does not work. Aero display selections are grayed out.

    Aero in Windows 7 64bit home premium does not work. Aero display selections are grayed out.  HP 600-1315xt.
    Have tried everything I can find on internet and here on HP. None of the suggestions worked. Windows fixit for windows could not fixit. Any suggestions are appreciated. I can always use my disks and rebuild the computer. A last resort.

    Hi,
    It might be the graphic driver not compitable with the graphic device.  Has there been a change to the graphic driver?
    One thing you can try is to uninstall graphic driver and download the latest from Windows Update (if you haven't tried this).  Here are the possible steps:
    1.  Go to Control Panel->Hardware and Sound->Device Manager,  uninstall the graphic card driver by right clicking and select "uninstall".  Make sure the option "Delete the driver software for this device" is selected.
    2.  Reboot the system.
    3.  Go to Control Panel->System and Security->Windows Update, click on "Optional updates" and find the driver for g210 and do the update.
    I work on behalf o HP.
    Please click the white Kudos star to say thanks.
    Please click Accept As Solution if you found my response helpful.

  • Clip inspector in imovie not working properly - when I select a picture - and select clip adjustment it tells me that I need to select one or more clips to view Inspector tools and in a clip the audio adjustment only shows a speaker? help

    Clip inspector in imovie not working properly - when I select a picture (in project library) - and select clip adjustment it tells me that I need to select one or more clips to view Inspector tools and when I select a movie clip and then click on audio adjustments the audio adjustment appears as a speaker icon and I don't know how to get to the various audio options? It was working fine one minute and then I seemed to lose the functionality. Also editing a photo in a photo or getting rid of ken burns effect etc does not seem to work. help

    Can anyone shed any light on this as I am having the same problem? One minute it works fine, the next you get the error message above.
    Many thanks.

  • Constant Error; Adobe Flash Player 11.4 r402 has stopped working. But NOT running Trusteer Rapport.

    I am experiancing this unbelieveably annoying and constant Flash error;  Adobe Flash Player 11.4 r402 has stopped working.
    But NOT running Trusteer Rapport, I never have, and it's not even installed on my computer.  So what's causing this?

    There were a couple AntiVirus/AntiMalware products that keep coming up, but I haven't validated that in the lab and don't want to call anyone out publicly without reporting the issue to them first.

If you could tell me what antivirus/antimalware products and versions you have installed, that would be helpful.
    So, third party stuff aside, I'd like to know more about the crashes your seeing:
    1.) Please provide links to the Firefox crash reports.  If you have multiples, the first few would be great.
         In Firefox, type about:crashes in the address bar
         If the link starts with "bp...", it's already been submitted -- just right-click on it and copy the link, and paste it into the reply here.
         If not, click it to submit it, and copy the subsequent link.
    2.) In firefox, type about:support
         Just copy and paste the output into the reply.
    3.) In Firefox, type about:plugins
         Please copy and paste the output into the reply
    4.) Please provide the output of the DirectX Diagnostic Utility
         Click Start > type "dxdiag" [enter]
         Click Save All Information
         Copy the output of the file into the reply, or use Adobe SendNow/DropBox/PasteBin to share the file.
    5.) If you can provide an exact URL and step-by-step instructions on repeating the crash (if it's consistent), that would be really helpful.  My goal is to build out a configuration that matches yours as closely as possible, reproduce the problem and then debug it.
    If you're not comfortable sharing that diagnostic information publicly, send me a private message.  Just click my name and use the options on the right.
    Thanks!

  • cffeed caching works locally but not on server

    So I got my new Hostek account set up (woohoo!) and I've started uploading some basic files so I can do thinks like validate my code and make sure everything's working.  One thing that does not work (but does locally) is my news feed caching.
    Pulling in two RSS feeds was seriously slowing down my index page loading, so I stole a trick from Ray Camden on caching the feeds.  It works perfectly on my dev machine at home, but doesn't work on my hosted account.
    Here's the exact code being used:
    <cfset feedurl = "http://velonews.competitor.com/feed">
    <cfset cacheTime = #createtimespan(1,0,0,0)#>
    <cfif not structKeyExists(application,"rsscache") or dateDiff("n", application.rsscache.created, now()) gt cacheTime>
        <cffeed source="#feedurl#" query="entries">
        <cfset application.rsscache = structNew()>
        <cfset application.rsscache.data = entries>
        <cfset application.rsscache.created = now()>
    </cfif>
    <ul>
    <cfloop query="#application.rsscache.data#" startrow="1" endrow="6">
    <cfoutput><li><a href="#rsslink#">#title#</a></li></cfoutput>
    </cfloop>
    </ul>
    I tried wrapping a try/catch around the top section (above the <ul>) and still got nothing for an error message.  The page just stops being rendered at that first <ul>.
    I'm not sure why it works locally but not on the web server.  Any ideas?

    Miraculously, I got it working.
    I changed this:
    <cfloop query="#application.rsscache.data#" startrow="1" endrow="6">
    <cfoutput><li><a href="#rsslink#">#title#</a></li></cfoutput>
    </cfloop>
    To this:
    <cfoutput maxrows="6" query="application.rsscache.data">
    <li><a href="#rsslink#">#title#</a></li>
    </cfoutput>
    And bingo!  It worked. Perhaps it's an idiosyncrasy between CF9 and CF10.

  • I can not right click "open in new tab" nor open in new window, in my bookmark file.the bookmarks are all there, but I have to open a tab first then left click to open an item. Why can't I right click? The options are there, but not highlighted/clickable.

    I can not right click "open in new tab" nor open in new window, in my bookmark file.the bookmarks are all there, but I have to open a tab first then left click to open an item. Why can't I right click? The options are there, but not highlighted/clickable.

    now it is working?! Go figure. Yeah! Thanks anyway......

  • I bought Adobe Elements 12; I cannot use panorama photomerge, I have followed the directions to go to Full Edit  mode in edit workspace choose File New Photomerge. However the Photomerge does not work, it does not respond.   The only thing I can come u

    I bought Adobe Elements 12; I cannot use panorama photomerge, I have followed the directions to go to Full Edit  mode in edit workspace> choose File> New> Photomerge. However the Photomerge does not work, it does not respond.
    The only thing I can come up with is that I found a blog that said that in the Trial version Photomerge does not work, however I do Not have the Trial version, I did at one time but I purchase Adobe Elements. Thank you.

    The blog was incorrect. Photomerge should work in the trial, too.
    When things get weird in PSE the first thing to do is to delete the prefs. Go to the editor preferences>general, click this button and restart the editor:

Maybe you are looking for

  • Adding new column in an existing report which was build using Union

    While working in OBIEE 11g I encounter an issue. My existing report was build using UNION at Criteria Tab in Analysis. Now I have a requirement to add a new column into the same report. For each criteria I have added the new column but when I go back

  • Change logs for Z table.

    Hi All, I am trying  to fetch the old value and new value for the z table field.Change log is activated for the Z table. but i dont know how to fetch the change logs. SCU3 is the standard transaction to see the change logs for all the tables. Is ther

  • Garbage Characters in Netscape

    Hi, I open a 'jsp' in a new popup (window.open). Netscape shows some garbage characters at the top of the page. (Works fine with IE). I tried deleting ALL the code from the popup jsp to trace out the problem (even removed the HTML tags). But Netscape

  • Nokia X2 - Incoming MMS is too small ( 2,8 kb ) !

    i tried everything. New SIM card, i did update 2 times phone software. I did send from 3 different phones pictures and incoming to my phone is still the same. Size between 2 and 4 kb. Its so small that its even not possible to see whats on picture. M

  • Retrofit in SAP Solution Manager 7.1 Supported Across Different OS's?

    Is Solution Manager 7.1 Retrofit Capability supported with a different enhancement pack level and across different Operating Systems (HP-UX & AIX)? The specific scenario would be setup of a dual landscape where traditional Dev -> QAS-> PRD is on HP U