Terrible performance of applet with firefox & appletviewer (not IE)

I'm working on a worm game with the help of a book on the subject. It's not finished yet, the worm can only move around & stop when hitting a wall. Now as I add the g.drawImage(blahblah) to the paint-method, the performance gets terrible, the mouse responds every 2 seconds and painting errors occur in the applet. I can barely manage to get the appletviewer closed.. The weird thing is, that the applet works smooth on IE, but not on firefox nor appletviewer... Here's the code, "translated" to english with find & replace for your convenience. The worm.java -file is not included, only the main wormgame.java
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class wormgame extends Applet implements Runnable
     Thread Thrd;
     worm Worm;
     Image Background;
     boolean Loaded;
     public void init()
          Worm = new worm(27, 1, 3);
          Background = getImage(getCodeBase(), "tausta.jpg");
          Image ImageToMemory = createImage(size().width, size().height);
          Graphics ImageToMemoryKP = ImageToMemory.getGraphics();
          ImageToMemoryKP.drawImage(Background, 0, 0, this);
          Loaded = false;
          addKeyListener(new WormListener());
     public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)
          if(infoflags == ALLBITS)
               Loaded = true;
               repaint();
               return false;
          return true;
     public void update(Graphics g)
          paint(g);
     public void start()
          if(Thrd == null)
               Thrd = new Thread(this);
               Thrd.start();
          requestFocus();
     public void run()
          while(true)
               Worm.move();
               if(Worm.isDead())
                    Thrd.suspend();
               repaint();
               synchronized(this)
                    try
                         wait(200);
                    catch(InterruptedException e)
     public void paint (Graphics g)
          if(Loaded)
               g.drawImage(Background, 0, 0, this);
               showStatus("Finished.");
          else
               showStatus("Loading gfx...");
          Worm.piirraWorm(g);
          requestFocus();
     class WormListener extends KeyAdapter
          public void keyPressed(KeyEvent e)
               switch(e.getKeyCode())
                    case KeyEvent.VK_LEFT:
                    if(Worm.parts[0].direction !=Worm.RIGHT)
                         Worm.turn(Worm.LEFT);
                         repaint();
                    break;
                    case KeyEvent.VK_RIGHT:
                    if(Worm.parts[0].direction !=Worm.LEFT)
                         Worm.turn(Worm.RIGHT);
                         repaint();
                    break;
                    case KeyEvent.VK_UP:
                    if(Worm.parts[0].direction !=Worm.DOWN)
                         Worm.turn(Worm.UP);
                         repaint();
                    break;
                    case KeyEvent.VK_DOWN:
                    if(Worm.parts[0].direction !=Worm.UP)
                         Worm.turn(Worm.DOWN);
                         repaint();
                    break;
     }

Just noticed that it won't work with IE either anymore.. My friend got it working, sounds like there's sth matter with my system? I have the latest jre & jdk, just reinstalled them due to this (didn't help).. here's the address for the applet: http://acdx.net/matopeli/matopeli.htm

Similar Messages

  • Why does the FP 10 work with firefox but not with IE8

    I down loaded the folowing for xp FP uninstall, FP plugin and FP debug from the link in one of your replys. now I can watch youtube  with firefox but not with IE8. you asked me before if i was using 16 bit. whats that mean and how do I find out? please help I just want to watch youtube on IE!

    Ok Shag, since you hadn't been on a Forum before, then I'll take some of what I said back:-) I wanted you to stay on one thread, you can get in trouble trying things that may cause you more problems than you had in the beginning. I just had your best interest at heart
    I'll even overlook your all caps here:-) At least you responded
    Now since you say you fixed it, what you should do is to confirm it is fixed by taking a look at your Flash folder. This contains all of the Flash files for IE and FF. Then make sure you have the IE add on and the FF add on. That way if you have any future problems, at least you would know it is not the Flash Player.
    You should only have 2 .exe files for IE and 1 for FF.
    For Video editing, I would check Microsoft and see what they have. Perhaps someone else will come along with other info for you.
    No, I don't get paid here, since I am not an employee. Just a user helping others, since I had a problem at one time and after 4 hours of researching solved it.
    Let me know if you want to check the Flash files.
    Thanks,
    eidnolb

  • Does McAfee siteadvisor work with Firefox - if not, why not?

    does McAfee siteadvisor work with Firefox - if not, why not? Is there a way to make it work?

    No, it is blocklisted by Mozilla due to that Site Advisor extension being the #2 cause of crashing the Firefox 5.0 betas. McAfee was notified of the problem long before that extension was added to the blocklist. Now it is up to them to fix it. <br /> https://addons.mozilla.org/en-US/firefox/blocked/
    I have read that McAfee is working on a re-written version that is projected to be available in the 3rd week of July.

  • Slow Performance of JApplet with Firefox Plugin in Linux

    Hi everyone,
    I recently revisited an applet I wrote 8 years ago. It's a simple ticker tape. I need a ticker tape for a larger project I am working on, and I had to convert it from AWT to Swing.
    Anyway, with the new 1.6.0_xx plugin for Firefox 2.0.0.5 under Fedora 7, the performance is slow and the text scrolls by in a choppy manner. However, if I run the mouse over the JApplet area or the Java console itself while it is running, the text scrolls by smoothly. This does not happen with the 1.5.0_xx series plugin, and although the JApplet was compiled with the 1.4.2_15 compiler, I cannot find a plugin from that series that works with Firefox 2.0.0.x to test if the problem is there as well.
    So, can anyone help me out? Is this a known issue with the newest plugin? I don't think there's an error in the code. Both the embedded applet and source code can be found at this URL: http://www.brian-borowski.com/Ticker/
    Thanks in advance for your help.
    -Brian

    I tried to do a simular thing, but I did not notice a performance decrease. However it might be possible that this happens. For example, if you are calling a time critical vi in the second while loop, it will lock all other processes until it is finished. Or maybe you are calling a shared resource (allocate an array, access to a file, using a mutex) that the other loop holds. Until the shared resource is released the first while loop must wait before it can access that resource (memory, file, etc.).
    Without looking at the source code it will be hard to say what is causing it. I recommend to remove part by part subVI's from the second loop, to debug where the problem exists. If you want I can have a look at the code, please reply to this thread.
    ErikvH
    A
    pplications Engineering
    National Instruments
    Attachments:
    Digital_Output.vi ‏56 KB

  • Flash player lags bad with Firefox but not with google chrome,what is the problem ?

    Every time i try to play any game using flash player with Firefox i have a lot of lag time. I have to stop playing and wait for things to catch up to play to play any more,I do not have this problem with google chrome playing the same games.I have updated all add ons and plugins.
    == This happened ==
    Every time Firefox opened
    == about a month ago

    Everyone can blame flash player if they want, but the truth is for me I went from an earlier version that had plugin container which created lag for me. I disabled the plugin container in about:config settings, and firefox worked fine. Plugin container screwed up any videos i tried to watch on the internet by freezing, lagging, and crashing firefox. I was fine after I disabled plugin container, but then eventually some time later down the road I received a warning that i would soon be forced to update my mozilla so I eventually/reluctantly gave in and complied. At this point the same problems started again!!! I disabled plugin container again and it did help a bit right away. But this version 12.0 even with plugin container disabled with just a few tabs open I receive choppy video (like a snapshot of the video at 3 seconds in, and then another snap at 6 seconds in) I'm only seeing snapshots of the video like every 3 seconds while the audio continues on fine. That"s how bad the lag is. This is horrible performance for a browser. If I try to load a video while one is already playing, just that little bit of stress (2 youtube videos open at once) is all it takes to crash this poor performing version of firefox. I mean I can't even close the tabs after these situations and the audio sometime runs after closing for me as well. These problems did not start until the version changes of firefox and the addition of plugin container, not flash player. I have been a loyal mozilla fan, but my patients is wearing so so thin with the performance of this browser at the moment. Unfortunately I just realized for the first time ever I actually have to (against my will) install another browser just to watch videos. How sad is that? Considering watching videos is one of the main uses of a browser, I consider this version a failure. How could I not??? I guess I have no choice but to Chrome it up. I hope a fix for this problem can be found soon for I miss the great performing days of this previously top performing browser. Fingers Crossed!!!

  • IDM 8.1 with firefox does not show all GUI items

    Hi,
    we are running IDM 8.1 Patch_5 on Solaris 10. We have 2 instances, Prod & UAT. UAT runs from Tomcat 5, Prod uses Sun Appserver 8.
    But our problem seems to be the Web Client.
    When We lookup a user and then open the tabs for them, for example "Security" Firefox is not showing the
    little boxes that allow you to allocate attributes etc. Instead, we just get the form title and then a blank line.
    I did some reading and noted that there were some Java issues with IDM and Java and Firefox but I cannot apply
    the workaround. I also tried the edit of Waveset.properties and adjusting the baseHref as suggested elsewhere but this
    also does not work.
    We are using Firefox Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9.2.6) Gecko/20100627 Firefox/3.6.6
    As you can see this is a SPARC desktop!
    Also Java was tried with v1.5_16 and now currently jdk1.6.0_07.
    Can anyone please assist? This is rather urgent. I will be trying my Mac at home tonight, but we need something
    that works now! Interestingly, this is the first time I have seen this problem. It may be related to Firefox, but I tried using Opera as well
    with the same result.
    Please assist!

    Hi,
    thanks for the information. I doubt we will be modifying the base code of IDM in this way. I am a bit disappointed that a
    Sun product, running on a Sun desktop has this issue, but I think it more of a synergy between Java and Firefox, although
    Opera was basically broken the same way, too.
    Our workaround for now, is to have a separate install of Firefox, which is 3.0.3 and Java 1.5.0_16, which we know work
    and run this as a parallel browser, with a symlink to it as "firefox-idm". This is OK, but not really that good.
    Interestingly, IDM 8.1 displays perfectly on Snow Leopard and G5 Leopard using Firefox 3.6.6 and Java 1.6 on
    Snow Leopard and with Java 1.5 on the G5 release.
    We are thinking of apply IDM patches, but are reticent to do so, if they break any existing functionality......
    Cheers
    rachel
    Edited by: virag064 on Aug 19, 2010 6:04 PM

  • Want: Adobe Reader with Firefox but not with Safari

    I've been using Firefox as my primary browser for awhile, but still use Safari at times. I use Adobe Reader to display PDFs within Firefox, and it is currently also used by Safari.
    I'd like to take advantage of Safari's new ability to natively display PDFs within the browser window without using Adobe Reader, but I want to continue to use Reader with Firefox.
    Does anybody know of a way to make this happen? It seems to be an all-or-nothing proposition since the same plug-in is used by both browsers.
    iBook G4 12"   Mac OS X (10.4.6)   It's white.

    well, you might try quitting safari & firefox, then moving the adobe plugin(s) from /hd/library/internet plug-ins/ to /applications/firefox.app/contents/plug-ins/ In finder, press Apple-shift-G & paste the italicised text above into the box - this will take you to the firefox plug-ins folder ( assuming you have firefox in the applications folder )
    then restart the browsers & see what happens
    Please note - I don't know that this will work, but it's easy to try & easy to revert back to normal - just quit the browsers again & move the plugin(s) back where they came from.
    I'll just test it with a different plug-in......

  • Why am I now having certificate issues with Firefox but not IE?

    I can no longer log into Gmail, Facebook, Amazon, etc... using Firefox. I get the following error "accounts.google.com uses an invalid security certificate. The certificate is not trusted because no issuer chain was provided. (Error code: sec_error_unknown_issuer)". It works with IE but not Firefox. This just started a few days ago - prior to that I was able to log into those https sites without issue.
    Any suggestions? Thank you.

    "browser.xul.error_pages.expert_bad_cert" was set on false so I set it to true and tried reloading.
    Got the page giving me the option to add exception and continue. Kept trying that and would not continue to the page even after accepting 10+ times.

  • F-secure browser protection toolbar was compatable with firefox 4 not with firefox 5

    f-secure browser protection toolbar was compatable with firefox 4 why not with firefox 5

    See f-secure for an update. f-secure needs to keep their Firefox add-ons up-to-date as Mozilla releases new versions of Firefox.

  • Forum 'Sign In' with Firefox browser not working

    Anyone else having this issue with Firefox 23 or 24? IE9 works fine.

    Notice there is no mention of the Adobe Forums or Adobe Labs 'Sign In' accounts. My 'Adobe ID' is my email address and my Adobe Forums and Labs 'Sign in' is trshaner, both with different passwords and email addresses.
    I had an online Chat at the link you provided with Adobe Tech Support. I was sent a password reset email for the Adobe forums account using the other email address [email protected]. I was able to successfully change the password, but the old password persists for the Adobe Forums 'Sign In.'
    Here's the chat-See bolded responses.
    Khader: I will send a password reset link to your both email address. You can reset the password and can login.
    Khader: I would like to inform you that same email address can be used for both Adobe Forums and Labs 'Sign in'.
    Todd Shaner: OK, thank you. This is just for the trshaner@ that I need to reset. Will I lose my history for the trshaner Adobe Forums account?
    Khader: You will not loose any history for your trshaner@optonline.
    Todd Shaner: When I Sign In to Adobe forums with toddshaner@ it does not show my previous history. Can I still use trshaner Sign In and just change the email address in my profile?
    Khader: I have sent you the password reset link to your both emails. Please reset the password and login.
    Khader: I'm sorry the email address is already register with us and you will not be able to change the email address.
    Khader: Please reset the password for your trshaner@ and check the history.
    Todd Shaner: OK, I'll try the password reset for trshaner.
    Khader: Sure, I will stanby.
    Todd Shaner: OK everything is there but still getting this error when logging in or logging out: Jive SBS Jive SBS Oops, the page can't be found Sorry, the page you requested can't be found. You can go back and try again, or start again at home. Page can't be found Error 404
    Khader: In this case I would recommend you to delete your cookies or try login using different browser.
    Todd Shaner: Delete cookies or use different browser works for one-time. When shutting down or after a few hours the message comes back
    Todd Shaner: See discussion here: http://forums.adobe.com/message/5744080#5744080
    Khader: Please raise your request in Adobe forums.
    Todd Shaner: I have! Please see post here: http://forums.adobe.com/message/5739578#5739578
    Khader: You will get a reply for it.
    Todd Shaner: Ok, thanks for your help. I can still get into the forum. So just an annoyance for now. Have a good day. Bye

  • Attach file not working in gmail with firefox. Not problem with IE

    Dragging and dropping into gmail worked (firefox) although duplicates were dropped as well. I just deleted those. No problems at all in IE attaching a file though.

    Hello slv1982,
    Your Firefox version is very old .Please upgrade it . Please follow the following procedures
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.

  • Mac OS 10.5.6 - Not compatible with Firefox? "not supported by architecture" message

    I just had OS updated on a Power Book - following a hard-drive crash, now running 10.5.6 - Tried to download/install Firefox 4 - get a "not compatible with this architecture" message upon launch. Any suggestions?

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party build that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox

  • Facebook freezes when trying to open with firefox but not other browsers, how do I fix this?

    I have two users on my pc. The main user has no problem accessing facebook using his windows account and firefox browser. The second user, however all of a sudden, cannot access facebook with his windows account and firefox browser. Firefox freezes and says not responding. Other browsers, however work. I have loaded and run a windows registry repair which did not fix the problem. I have also run my virus scanning software. I cannot find an answer to this issue. Can someone please help?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Adobe Flash Player 10 works with Firefox but not with IE8???

    Hi Gang: I need help, I have downloaded adobe flash player 10, enable my javascript in IE8, but when I attempt to run youtube videos, I get the error message, javascript need to be enable or you need to download a newer version of adobe flash player. I then opened Firefox instead then run the same youtube videos and everything is perfectly fine. Why can't I run youtube videos in IE8 with the adobe flash player 10? What is the fix?
    Thanks

    What's (likely) happening is that the HTML wrapper around the .swf isn't behaving... which causes Flash Player version detection to fail. Hit this test page at youtube - you should see an embedded movie with Flash Player version information.
    http://www.youtube.com/swf_test.html
    You may find success by following the instructions in this tech-note for a complete uninstall... then re-install the latest FP.
    http://kb2.adobe.com/cps/141/tn_14157.html

  • I desperately need to send emails from Sage Accounts linked with Firefox and not Outlook Express. Tried everything

    I am using Sage Instant Accounts and need to email customers their invoices directly. I have recently changed computer and upgraded Sage and I can no longer do this although could do it last week. I used to be able to go into email in Sage and Firefox would automatically come up with my contacts etc.
    I think Sage looks to Outlook Express. If I delete Outlook Exp will that be an answer?
    Have phoned Sage but they have no further answers. So need help as spent too much time!

    I use Outlook so this might not be quite the same with Outlook Express.
    After I set up an email account I can 'Test' the account settings which effectively sends a test email from the account to itself. If that is possible then check which way works i.e. the sending or the receiving of the email. If it is just the incoming part then this could be that you need to tick the box in the account settings that says 'My outgoing server requires authentication'.
    Other than that check your incoming and outgoing servers which, if you're using btinternet should be both set as mail.btinternet.com, I also suggest you check your username and password.
    Good luck!

Maybe you are looking for

  • What kind of screen protector should I use for my iPhone 6? Should I use one?

    I'm looking for a screen protector for my brand new baby. To my dismay, it's hard to find one that "fits" because of the curved edges. I have ocd, not to mention that what isn't covered by a screen protector are usually crucial areas. Can anyone reco

  • How to highlight the selected value in a table

    Hi All, I have list of roles in a table like admin,dba...etc. i will select the current selected role using   Stgin role =wdCotext.currentElement().getRole(); After getting the role i bind this value in context. now my requiremnet is i will navigate

  • AS 3.0 how to set event target?

    Hi, I am trying to execute an event on a specific target and I am not successful in doing this in AS 3.0 since event.target is read only. Here is the scenario: - I have a button and the path to this button is: DataEntry0._UpdateDeleteProd1.Form10.For

  • Oracle 9i and 10g Agents on one server

    Hello, What are the conflicts if I installed 10g agent on the server that 9i agent already occupy. I want to use 9i and 10g OEM. Thank you in advance.

  • Splitter in JSF

    How to add horizontal splitter in JSF?