This is really getting on my NERVES!! _NOT A GRIPER_ legitamate question...

I am writing a sort of desktop program (sort of like the desktop to Windows and or any X Window System desktop like GNome or KDE, you get the picture) I've written a FileIcon class that extends JPanel, and I have added a listener for Mouse Drag, so that in theory when you drag the icon it follows the mouse. It looks something like this:
//this is in the constructor:
this.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseDragged(MouseEvent e) {
this_mouseDragged(e);
void this_mouseDragged(MouseEvent e) {
this.setLocation(e.getPoint());
Okay now here is the IDIOTIC ANNOYING AGGREVATING NERVE RACKING (sorry I had to vent) PROBLEM:
The Icon does two things that it should not be doing:
First it I guess the average of the point where it started and the point where my mouse is. The farther I move from the starting point from the mouse, the farther behind it goes.
Secondly, and more annoying, is it blinks between two different locations, so sometimes when I let go of the mouse at the bottom of the screen, the icon will have moved towards the top of the screen. It lands on whatever of the two locations, both following the mouse from different angles (see problem number 1), happens to be its position at the moment. Try it out:
make a JPanel with a null layout and add the IconClass made below,
make some IconClass extending JPanel, with the above code for the drag event, and try dragging it around a little bit.
All and any help is appreciated and if I have any duke dollars left I will reward a complete fix answer with as many as I can.

I found a suitable fix, incase anyone else is trying to do this:
Point point1 = this.getLocation();
Point point2 = this.getLocation();
MouseEvent dragEvent;
public Point addPoint(Point p1, Point p2)
point1 = this.getLocation();
point2 = dragEvent.getPoint();
int x = (int) (p1.getX() + p2.getX() - 40);
int y = (int) (p1.getY() + p2.getY() - 40);
return new Point(x,y);
public void run()
this.setLocation(addPoint(point1,point2));
void this_mouseDragged(MouseEvent e) {
highlight(MOUSE_DRAG,e);
if (type != 0)
dragEvent = e;
Thread t = new Thread(this);
t.start();
It works pretty well

Similar Messages

  • I really need help on reseting my security questions i tried sending in my rescue email but the rescue email is not showing up on the password and security tab and i'm positive i don't know the answers this is really getting annoying _

    i really need help on reseting my security questions i tried sending in my rescue email but the rescue email is not showing up on the password and security tab and i'm positive i don't know the answers this is really getting annoying

    If your rescue email is not working and you cannot remember even one answer, then you only have one option - call Apple.
    http://support.apple.com/kb/HT5665

  • I can update my Iphone.. everytime i turn my computer on it says.... the proecdure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll. please help this is really getting frustrasting

    pleas ehelp me fix this problem I am unable to update my Iphone or Ipad because of this.

    Hi, I get the same error EVERY time iTunes updates.
    I have to do the fix that is suggested in this topic (cut and paste the sqlite3.dll)
    My Question:
    Since this happens every time iTunes updates...... Do I have to remove SQlite3.dll from the "apple application support" folder....... so that the sqlite3.dll is only located in the "mobile device support" folder?????
    It is getting really annoying to have to do the "cut and paste" fix every time iTunes updates.
    Thank You,
    Steve

  • MAIL.this is really getting annoying..

    well i'm using mail on my macbook but when i go to send something it sits in the outbox forever. i've checked servers used and all and they are all correct but the mail WONT SEND!
    on top of that i tried using my regular online gmail to send one of my garageband songs to a friend and safari gives me an error saying i can't upload.
    next i try using my .mac account and i get this message
    Safari can’t open the page “http://www.mac.com/WebObjects/Webmail.woa/29/wo/Byn1JRzEK3H8Ms10YsPapM/2.0.7.3.2 3?upload=Y”. The error was: “POSIX error: Is a directory” (NSPOSIXErrorDomain:21) Please choose Report Bug to Apple from the Safari menu, note the error number, and describe what you did before you saw this message.
    its similar in gmail and yousendit.com
    why can't i upload? why doesnt mail send my stuff? grrrrr

    Does this article contain anything useful?
    (14044)

  • I've lost my Norton toolbar AGAIN because of this upgrade -- really getting frustrated with Mozilla -- how do I get it back?

    Everytime I upgrade to the latest version of Firefox I end up losing my Norton toolbar which has all my logins and security settings on it. I tried to avoid accepting the latest upgrade, but my husband downloaded it. I am getting very frustrated and angry every time this happens. Where can I find the fix for thisk problem?

    When Firefox updates to a new version all the add-ons you have installed need to be compatible with the new version, which Firefox will do if the add-on is setup to be updated automatically. Those Norton add-ons for Firefox need to be manually updated by you because Norton can't seem to be able figure out how to do it automatically, like happens with add-ons which are installed from the official Mozilla website. Get angry or frustrated with Norton.
    Run a Norton Live Update or see this: <br />
    http://community.norton.com/t5/Norton-360/Firefox-8-Support-for-Norton-Toolbar/td-p/581640

  • I bought an iPhone charger 3 months back its covering has torn out again. I had the same problem with my previous chargers and now this has started getting on my nerves. Why do your chargers suck so much, and why on earth don't do you guys anything?

    I mean seriously, stop working on your earplugs and look at the cheap quality of your chargers. I'm really really disappointed with apple. I have always loved apple and been an i-gadget freak but your chargers just bring my spirit down. GO WORK ON YOUR CHARGERS AND MAKE THEM STRONGER. Because even you know that apple's going down now and if you still have these shrude means of giving away cheap chargers so you can make more money (by making people replace them every once in a while) then you're gonna fall down to the ground because there are better phones and you have competition.

    If you would like to tell Apple about you're issues click here - http://www.apple.com/feedback/iphone.html

  • Why does firefox keeps forcing itself on top of all other windows? it doesn't matter what website im on, it always does it! Really gets on my nerves when im watching a video only to have it minimized and firefox slammed in my face lol...

    It's not to do with what website I'm on - Firefox ALWAYS does this even if I just have a blank tab open! Seems to happen in ubuntu and windows 7. Does anyone know why this is??

    Hi,
    You can consider the [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] feature via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''. If it is okay, you can then install the Mozilla Archive Format add-on.
    If you have security software installed you can try to delete all existing entries for Firefox and its sub processes in the different configuration modules and try to fully trust/allow Firefox afresh. Even after network access is completed, Firefox would still need unlimited access to its disk cache/memory as well as its files. Please see [https://support.mozilla.org/en-US/kb/Firewalls this].
    [http://kb.mozillazine.org/Firewalls AV/Firewall Configuration]

  • SKYPE IS REALLY GETTING ON MY NERVES

    so i have the app on windows 8 which i prefer better then the stupid desktop thing BUT NOW it says i need to download an updated version so when i click download nothing happens and i cant use the app what so ever anymore. !

    The Skype uApp, is retired due to Windows 10'a unified architecture, fortunately. You may however download Skype for desktop (or just Skype now ) here: http://www.skype.com/go/getskype On a side note; thank you for the kind words at the end of your posting I'm happy to help out.

  • Is there a way to reset my messages account, I can't get iMessage to work on IPad nor Mac osx. Help please this is really frustrating.

    Is there a way to reset my messages account, I can't get iMessage to work on IPad nor Mac osx. Help please this is really frustrating.

    Hi,
    Is there an iPhone involved ?
    If not, what happens  if you remove the Apple ID on the iPad and then set it in Airplane Mode (allow a couple of minutes at this point) followed by re-adding the Apple ID ?
    What, if any error messages are appearing on the Mac when you try to launch the App or Login to the iMessages server ?
    Is the Apple ID linked to an iCloud account ?
    In Messages 7 (Mountain Lion) this did not seem to be important but it seems it is in Mavericks/Messages 8
    9:14 pm      Friday; April 11, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • I really need to get this fixed an get his back up restored to his phone. thanks

    I backed up my sons Iphone 4  and tried to get it to Icloud with no luck, I figured it backed up to his itunes, I connected to itunes and logged him in under his account. I thought it was his back up but it was mine . How can I get his 2.4 gig back that is on his phone to restore his phone. can I do it right from the phone . I really need to get this fixed an get his back up restored to his phone. thanks

    ON both devices go to settings - message - send&receive - uncheck or remove the appl id.
    In the same settings - start a new conversation - remove or uncheck the apple id.

  • Okay this is really making me mad!!! U tell me to go to itunes to download 10.5 abd then i go to itunes and its no even there i have checked! Get it Straight!

    okay this is really making me mad!!! U tell me to go to itunes to download 10.5 abd then i go to itunes and its no even there i have checked! Get it Straight! Come on Itunes i thought that u were better than that! Really its ******* me off! becuase i want to download pictures and songs  on to my iphone!

    You can download the current version of iTunes (i.e. 10.6.3) on your computer from here : http://www.apple.com/itunes/download/
    If you already have iTunes installed on your computer then you should be able to check if there are any updates available for it via 'Help > Check For Updates'

  • Can smbody please tell me what to do to my iPhone 4s, when playing music or ringer, the sound will just stop without stop it.. I am really getting tired of this...

    Can smbody please tell me what to do to my iPhone 4s, when playing music or ringer, the sound will just stop without stop it.. I am really getting tired of this...

    After updating to iOS6, I lost all sound for apps like YouTube, Netflix, games, and even notifications. The only time sound worked was during a phone call or when the head set was plugged in.
    I did a full back up and restore- sound restored but only for a day before the problem returned.
    Called Apple Support and was advised to do another restore, but this time restore it as NEW first, then do the restore from back up.
    Seemed to do the trick.
    Here are the instructions of what I was given- hopefully this will help you too:
    Here is a link about backing up your iPhone with iTunes.
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    Once you back up your device you will want to restore it.
    You will need to have iTunes open on your computer screen.
    Please turn your iPhone off.
    Press and hold the Home Button.
    Continue to hold the Home Button as you plug you iPhone in to the usb cable.
    You will want to continue to hold the Home button until you get a screen with the message "device found in recovery mode".
    Please follow the prompts and restore device as NEW.
    once the restore is done you will have to set up the device and test the sound.
    If it works you will then need to restore the device from the back up to restore your user settings.
    You can find the instructions how to restore from back up also from the the link I provided.

  • How can I cancel my adobe subscription? I am in the trial period and cannot get any assistance online. This is really annoying

    How can I cancel my adobe subscription? I am in the trial period and cannot get any assistance online. This is really annoying.

    Hi tokhouse,
    Please refer to the help document below:
    Cancel your membership or subscription | Creative Cloud
    In case of any issues, please contact the support:
    Contact Customer Care
    Regards,
    Sheena

  • Trying to copy files and getting this error message, One or more items can't be copied because you don't have permission to read them. this is really annoying, can someone pls help..?

    i have two network drive and i am trying to copy a file from my mac mini to one of the network drives, but i keep getting this error message "One or more items can’t be copied because you don’t have permission to read them." i have no idea why this is since i have always been able to copy stuff back and forth. i checked my file sharing permissions and it is set to read and write for admin (me), none for everyone and read for guests. can someone please, this is very annoying and this is the second time it has happened to me.

    neither move nor copy is working. both way gives same error message. what i would like to do however is move the file. yes i am logged in as a the admin and the issue is affecting not just that particular file in my system but others as well. i looked at get info and no the file is not locked but under permission, it says everyone and read only. it will not let me change this setting from get info however when i look under system preferences for file sharing, my setting is read and write for admin (me), none for everyone and read for guests.

  • Itunes 11.1.2, iOS 7.0.3 - stuck @ waiting for changes to be applied - Its getting on to nerves !!!

    All was working fine, until I updated to iOS 7 and connected to itunes. All my music was wiped off my device, god knows what happened. Since 3 weeks I have been failing to sync my music back again, but with vain.
    For people whom the troubleshooting steps have worked, have been really lucky. Unfortunately nothing worked for me, spent hours together doing the below steps
    1. Re-Install iOS - restore, which took hours to download and install
    2. Uninstalled itune 3 times and chose multiple locations to install
    3. did a setting reset on the iphone
    4. tried syncing playlist by playlist
    5. tried installing/uninstalling an app while sync in progress, no luck
    6. tried syncing over wi-fi, no luck
    7. restart, hard reset, no luck.
    This is getting onto my nerves now, APPLE, hope your developers are looking into this, this can never be a fault with the device hardware, this has got to do something with the crappy iOS7 or the itunes 11.1.2
    Haven't seen anyone even caring about this topic, where hundreds of people are shouting on the same issue.
    Battery back up ***** after OS upgrade. Overheating.
    Please do something, before I move out to a Windows Phone.
    Many Thanks for all the trouble your new OS and itunes has given to its consumers.
    Rgds,
    Ravi

    Oh, also want to add that the PC I'm currently using is:
    Windows Vista Home Premium Service Pack 2
    My other PC was:
    Windows 7 Ultimate
    My MacBook is:
    Max OSX 10.5.something (the last update available for it. .8 maybe? haha)
    Not sure if this stuff is important, but I thought I'd add it.

Maybe you are looking for

  • Mod function not working correctly

    I wrote a code to decimal to binary number system, this code works properly for 5 but show wrong result on 47. I tried lots of times but not getting solution.When "23.5 mod 2" calculated I got the remainder 0 which is worng it should be 1. Private Fu

  • How do I get battery charge % to display on iPhone 3G?

    How do I get battery charge % to display on iPhone 3G?

  • Expanding Field

    I have a form with a text field. It is set to accommodate multiple lines of data without a limit on length. When I enter data, I get a scroll bar after two lines because I kept the cell small. It would be nice if the cell would grow with the data ent

  • What is the version of the nvidia drivers in Bootcamp 5.0?

    It's a question out of curiosity given Apple's release of new Bootcamp drivers for Windows 7 and 8 and the usual MO of Apple releasing outdated drivers. Are the BC 5.0 drivers for nvidia on the 3XX.XX version number or lower? Thanks for your time!

  • Downloading of DW keeps failing

    Trying to download Dw CC 2014 keeps failing I am new member of Creative Cloud Welcome. We're glad you've joined us. Thanks for joining Creative Cloud. We thought we'd send along a few ideas to help you get started. Get 30-day trials of all-new versio