I have come to the conclusion that all applets are dysfunctional...

So yeah, I made my applet, and it is supposed to move an object by giving it a velocity in pixels per millisecond, and starting an animation loop, which moves it for 5 seconds.
So I do this, and everything is working fine after about an hour of coding. Then I decide to touch up my sprite image. I wanted to make it transparent, so I open up Photoshop, and do that. Now it doesn't work. Before I edited the image, the object would move to the edge of the screen, the game would check the boundary, and then reverse the velocity, so it stayed on screen. Now, when you tell the object to move, I can see that the x and y coordinates are changing, but the thing doesn't change on screen.
The applet itself is behaving very weird:
http://img62.exs.cx/img62/7140/whatswronghere9ur.gif
In the first frames, the applet loads up like normal, but there is supposed to be a button there, which no longer shows up.
In the second and third one, it shows that if you cover any part of the applet, it turns white, and just dissapears.
In the 4th one is what happens when you click where the throw button is supposed to be. What prints to the console are the x and y coordinates. So you can see the arrow is just supposed to move back and forth.
I just can't seem to understand why this worked intially but when I changed the image(not the path, I just opened it up and deleted the white background), the thing stopped working. I put everything back to normal, and it still won't work.
The main portion for the code of the applet is this:
http://www.freewebs.com/nickv360/problem/Physics.java
Here are the other classes(Which I didn't write BTW, so no credit to me for them)
http://www.freewebs.com/nickv360/problem/Sprite.java
http://www.freewebs.com/nickv360/problem/Animation.java
Those two classes along with the AnimationLoop algorithm were taken from a book, so yeah.
Can anyone tell me what happened here? (ALSO I'm not sure if this is in the right place, so if it's not, just point me in the right direction).

The only thing that changed was the size of the
image. I made it a bit smaller. But after seeing
that it didn't work, I changedthe image size back,
with no luck however. I am using the java sdk1.5 ,
the latest one. I find it humorous that you won't
believe me, even though I am telling the truth. I
mean, there's nothing more to say on this. I've got
no reason to lieI do not believe that anyone accused you of being a liar, but expressed some doubts towards your conclusions.
The fact of the matter is that lots of people post their problems here and blame it on java itself ('java is broken') etc... and more often than not, the problem lies in their code.
I guess the next thing to do would be for you to post your code here.

Similar Messages

  • Could you help me with an app situation? We purchased several codes for Splashtop to install on our iPad 2's. It was working great but now that we upgraded the OS they have disappeared. The codes that we purchased are giving us an error that they have alr

    Could you help me with an app situation? We purchased several codes for Splashtop to install on our iPad 2's. It was working great but now that we upgraded the OS they have disappeared. The codes that we purchased are giving us an error that they have already been used. So far it has only been 2 iPads. 
    Any solutions?

    The compiler is highlighting the areas you got wrong, although the error messages are somewhat confusing.
    Error 1: NSLog is a function and needs to be called as such, see e.g. the circleArea call on the line above. Functions are called using the function-name with its arguments in paratheses e.g. foo(12, 13).
    Error 2: looks like a typo, defining a function is done as function-name(... <arguments> ...) { ... <body> ...}. In your code there is a ";" between the arguments and the body that should not be there, you probably copy pasted it from the forward declaration at the top of the source codde file.

  • Sorry everyone, I've come to the conclusion that it's me-

    Every time I log into the forums everything seems to be flying again and I think "Hooray! They've fixed it. Links are working, and quickly!"
    Then I scan around for a bit, have a look here to see what's going on, go back to the iBook forum, maybe post a reply or two, then…
    …m…o… l… a… s… s… e… s…!
    So I surf around a bit, put the iBook to sleep, go and mow the grass, wonder how much I'd get for the Yorkshire Terrier on eBay, (and the two aren't unconnected, if you think about it), come back in, make a cup of tea and settle down to scan the forums again. (Well it is Sunday)
    Yay! Fixed again!
    Not.
    Or is it?
    So I start to think again. (Yes, three times in one day…)
    "It must have been working OK before before I got back, 'cos it worked fine when I logged on. And now it's not."
    "It must be me"
    Sorry everyone…
    Adrian

    ~Bee,
    Please repeat after me:
    "There is nothing wrong with the servers. This is a figment of my imagination."
    Discussions site inaccessibility might be a closely-held Corporate secret, so perhaps it's best to not let anyone think that something might be wrong, either with the Site's operation or with the manner in which the Membership continues to be left stumbling in the dark, with many wondering if the problem is on their end as they "tinker" with Safari, download third-party browsers, and generally mess with the innards of their operating systems, looking for a fix to a problem which apparently does not exist anywhere.
    If something really were wrong, the Company's engineers would surely have the addressed it over the past several months, or would have at least found the time to create a standard notification that the Discussions are temporarily unavailable. What the Members face virtually every day now certainly must be user error because it's inconceivable that a top-notch organization would just ignore thousands of people who might have difficulty accessing the Site every day. After all, this is not a Dell forum. It is an integral part of the Cavalry!
    Gary
    1GHz DP G4 Quicksilver 2002, 400MHz B&W rev.2 G3, Mac SE30   Mac OS X (10.4.5)   5G iPod, Epson 2200 & R300 & LW Select 360 Printers, Epson 3200 Scanner

  • External drives won't dismount despite the fact that all apps are closed.

    I've got 2 external drives and suddenly I can't shutdown my computer b/c the drives will not dismount. I keep getting an error message "The drive 'hello' is in use and could NOT be ejected. Try quitting apps and try again"
    There are 0 apps open. Everything has been closed for over 10 minutes. ?

    is a little app that will tell you what is holding the drive. Usually Spotlight or time machine related in my case, even though neither is doing anything at the time. I usually end up logging out and in again to be able to eject the drive,

  • Require that all senders are authenticated no longer working

    Hello,
    I've already mentioned it in another thread, but maybe it's an update-issue in stead of server issue.
    My problem: It seems (well, it doesn't work anymore, so it's an issue) that the option "Require that all senders are authenticated" on 'Distribution Group' not longer works. I really don't know why this happends and when it doesn't work anymore,
    because it did work when creating the group (and the updates weren't available).
    The situation (so maybe there's another option to find out what causes the problem):
    Pineapp -> Exchange 2007 SP2 Rollup 4. The pineapp is being used before I installed updates of Exchange (and it did work with this setup), so in my opinion, this can't be the problem.
    If someone could help me, or point me to a (new) direction so I can solve the problem with our Exchange server, that would be great :).

    Update: When sending an email to the used distribution group, I get an bounce with 'authentication required'. When sending
    an email to the user in the same group, the email is delivered in stead of bounced.
    This is normal. You only enabled the  "Require that all senders are authenticated" on 'Distribution Group', but the users in the same group do not have 
    "Require that all senders are authenticated" enabled.  So the users outside of your domain still can send the mail to the users without authentication.
    To batch enable the "Require that all senders are authenticated" for the users, you can use the following method:
    1. Create a organizational Unit (OU), move the users to this OU.
    2. Open EMS, type:
    Get-mailbox -OrganizationalUnit   |set-mailbox -requireSenderAuthenticationEnable:$true
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Thanks

  • Is apple going to come out with a iso that lets ppl who have the iphone 3g to put up backgrounds its bs that i cant do it when ever i see something about the iphones even befor the 4g that all ways had backgrounds so what the **** is with that

    is apple going to come out with a iso that lets ppl who have the iphone 3g to put up backgrounds its bs that i cant do it when ever i see something about the iphones even befor the 4g that all ways had backgrounds so what the **** is with that

    iPhone 3G has received its last iOS update. If wallpapers behind the homescreen icons is such an important feature for you, you'll need a newer model iPhone.

  • I have 5 computers authorized on my account and I would like to deauthorize all of them. When I try it tells me I cannot do so until January 2016. Is there a way around this? I no longer have access to the computers that are authorized.

    I have 5 computers authorized on my account and I would like to deauthorize all of them. When I try it tells me I cannot do so until January 2016. Is there a way around this? I no longer have access to the computers that are authorized.

    Did you recently deauthorize a bunch of computers?  You can only deauthorize all once  year.
    iTunes Store: Authorize or deauthorize your Mac or PC - http://support.apple.com/kb/HT1420 - and another helpful post: https://discussions.apple.com/message/17828050
    You will have to contact Apple and request they remove the lock on a reset.  iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html > Get iTunes support via Express Lane > iTunes > iTunes Store

  • I have CS4 In design but when I try to open a certain file I get the answer that all plug in´s is not in my program. How can I update my plug ins?

    I have CS4 In design but when I try to open a certain file I get the answer that all plug in´s is not in my program. How can I update my plug ins?

    <moved from Downloading, Installing, Setting Up to InDesign>

  • I have a 27" iMac with 16GB of factory installed SDRAM and 1T harddrive.  It is telling me the harddrive is full and is not functioning correctly.  How can I adjust so that all files are managed on the harddrive rather than the SDRAM.  (BTW - design flaw)

    Processor 3.4 GHz Intel Core i7
    Memory  16 GB 1333 MHz DDR3
    I have a 27" iMac with 16GB of factory installed SDRAM and 1T harddrive.  It is telling me the harddrive is full and is not functioning correctly.  How can I adjust so that all files are managed on the harddrive rather than the SDRAM.  (BTW - design flaw here.)
    Older Macs with a single Harddrive would simply expand OS management on the drive, and I think I understand the new Fusion Drive to do just that, but how do I get this product that I spent a great deal of money on to be more than a pretty screen?

    I was confused by this statement
    It is telling me the harddrive is full and is not functioning correctly.
    OS X manages ram and when you run out, it create swapfiles to extend your ram on the HDD (Hard Disk Drive). The OS itself, takes about 16 gig of space and that too resides on the HDD.  Your 16 gig of RAM is really a temporary space that holds things from the HDD so the processor can work on them.  There is no design flaw between your ram and HDD.  Something else is going on and there are a lot of smart people here to help you figure out what that "something else" is.
    I would do three things.  First I would create a backup, backups are important.  Second, I would reboot into recovery and repair my HDD.  Lastly while still booted in recovery I would repair permissions.
    Can you capture a screen shot of the exact error you are getting?

  • Do i have to use the cps that come with my iMac?

    ok never mind that was dumb i should have opened it before asking

    I just purchased the Airport Extreme today and I was wondering if I have to install the CD that came with it on all of my computers to get the most out of the Base Station.
    There would only be two primary reasons that you would want to install the software from the CD on a computer:
    - You want to administer the base station from that computer
    - You want to enable "n" capability on that computer for those systems that could support it

  • HT204053 If I am joined into a family sharing group and I share my purchases does this mean they see all my apps that I have downloaded and the ones that had at once but deleted?R

    If I am joined into a family sharing group and I share my purchases does this mean they see all my apps that I have downloaded and the ones that had at once but deleted?

    Hi apples-consecutive-buyer-for-life,
    Family Sharing makes all of your past purchases available to other family group members, including most apps. See this article on what content can be shared -
    Which purchased content can I share using Family Sharing
    Note also that content can be hidden. See this article - 
    Hide and unhide purchases in the Mac App Store
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • I have upgrade to IOS 8 and all Fotos are ereased and on my Computer is only the last Backup and there a no Photos now what can i do?

    I have upgrade to IOS 8 and all Fotos are ereased on my Iphone and on my Computer is only the last Backup and there a no Photos now what can i do?

    You really need to try this on a computer, not on the iPad.
    Seeing how what is in the cloud is also on the iPad, if the content is not on the iPad, there is a good chance that the content is lost. But you can try logging into www.icloud.com in a web browser on a computer and log into your account and see if you can get into the Pages app. You may have to sign up for iCloud drive if you didn't do so already. Make SURE you that you read the blurb that will pop up in that window in iCloud for more information.

  • Everyday when I open Firefox a msg come on the screen that says "It is stronly recommended that you apply this update for Firefox ASAP." The connectivity server will not connect. Is there some way to disable this request?

    Everyday when I open Firefox a msg comes on the screen that says "It is strongly recommended that you apply this update for Firefox ASAP. When I try to install, it will not connect to the connecting server so it just clocks forever.

    See:
    * http://kb.mozillazine.org/Software_Update (Software Update not working properly)
    Remove the files in the updates and updates\0 folder.
    You may need to delete active-update.xml and updates.xml as well if present.
    XP:
    C:\Documents and Settings\&lt;user&gt;\Local Settings\Application Data\Mozilla\Firefox\Mozilla Firefox\updates
    (%USERPROFILE%\Local Settings\Application Data\Mozilla\Firefox\Mozilla Firefox)
    If you have problems with updating then easiest is to download the full version and uninstall the currently installed version.
    You may need to remove the Firefox program folder to do a clean install of the new version.
    Do a clean (re-)install:
    * Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 4.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Do not remove personal data if you uninstall the current version.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.

  • When bluetooth headset is connected to iphone,I can't hear iphone ringing aloud when I have a call or a text. Do i really have to wear the bluetooth headset all the time in my ear to know when I have a call or a message? Why it doesnt ring through iphone?

    when bluetooth headset is connected to iphone,I can't hear iphone ringing aloud when I have a call or a text. Do i really have to wear the bluetooth headset all the time in my ear to know when I have a call or a message? Why it doesnt ring through iphone but it rings through the bluetooth headsets?
    In other phones, you can hear the phone ringing and if it was connected to bluetooth, you could pick up the call from the bluetooth headset.
    Here with iphone, if its connected to bluetooth headset, it only rings through the headset, which means that if you dont have the headset in the ear all the time, you cannot know that you have an incoming call or message.
    Any ideas - solutions - comments please?

    I'm having the same problem. I had a plantronics 975 (which I lost, sadly). When connected, the ringer would always be routed through the bluetooth and the iPhone's external speaker. When in silent mode, the iPhone would only vibrate, but I could still hear the ringer in the bluetooth.
    I just bought a new Plantronics Voyager+. Now when it's connected, all sounds are routed to the earpiece - including the taps, etc. The iPhone's speaker doesn't ring at all, unless the bluetooth is disconnected or powered off. I'd really like to be able to hear both, like I was before. This is an iPhone 3G running iOS 4 (latest version, not sure what it is exactly). Haven't updated software/firmware in between bluetooths, just changed the earpiece.

  • In my itunes library I have apps for the ipod.  All of the apps were together, and now I have two different sections to my apps. The first one says 44 apps and the second section says 143 apps.  When I connect my ipod only the first section goes on

    can anyone help me with my apps on my itunes.  They have separated for some reason.  I have one section of 44 apps and the other has 121 apps. Only the top section will sinc with my ipod because at the side where it says apps, it is only showing the 44 apps and not the section at the bottom

    Can you take a screen shot of the iTunes screen and post it? I do not really understand what you  mean by different sections.
    What model iPod and iOS do you have? Maybe the section that does not sync are not compatible with the iPod.
    Were all the apps purchased with one account?
    Do you have any Restrictions one that would prevent syncing? Settings>General>Restrictions.

Maybe you are looking for