Applet - page reload problem

Greetings 4all,
I'm developing, a bit complicated applet with few threads, listeners, and not difficult but expanded GUI. You can see it under www.demo.twelvee.com.pl.
The problem is that this applet doesn't behave correctly after page reload in the browser. I mean that there are no graphics with parameters drawn in the middle of the main internal frame. I don't know why. When I'm visiting page first time everything works fine. This bug occurs only after reloading the page. Threads are still working, also all listeners are catching events. After few small tests I've recognized that method paintComponent() in each JPanel isn't called. I suppose it might be connected with browser's cache.
Have You got any ideas? Because I have none, any suggestions are welcome :)
You can access source here: http://www.iem.pw.edu.pl/~opalam/12/source/

If it is due to the browser's cache of the applet, the only way that most (all?) current browsers will reload the applet is to close ALL of the browser's windows and restart the browser. (You used to be able to CTRL-F5 but this no longer works, afaik.)

Similar Messages

  • Page reload problem

    Hello,
    I am experiencing problems with a JSP page that contains 1 text field and 2 list boxes.
    The page has a form with no action, 3 buttons at the bottom (save, delete and back), they are '<input type="button"...' witch throw some JS code to forward to the next page.
    The thing is that when I press <enter> when I'm in the text field, the page reloads... BUT, if I put a second text field, this does not occur... (and don't tell me to leave the second field ;-)), and that's exactly what I'd like, but only with one field.
    I even tried without the buttons and the JS code, but it's still the same thing... What can I do???
    Please help me...
    Best regards
    NAS

    Hi!
    I stripped the code down to its simplest state, this is what I have left...
    <html>
    <head>
    <title>unifr.ch</title>
    <META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=iso-8859-1">
    <link href="script/standard.css" rel="stylesheet" type="text/css">
    <%@ page import="alumni_web.*" %>
    </head>
    <body bgcolor="#ffffff" background="images/general/bg_m2.gif">
    <table border="0" cellpadding="0" cellspacing="0" id="content_3_col">
    <tr>
    <td align="left" valign="top">
              <form name="edi_saes" method="post">
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
                   <INPUT type="text" name="textfield">
    </td>
    </tr>
    </table>
    </form>
    </td>
    </tr>
    </table>
    </body>
    </html>
    There it is all... And if I type in something in the field and press enter, it reloads the page... If I add a second field, this does not occur...
    Thanks for your time

  • Applet Reloading problem

    Hi,
    I am involved in a project in which we are using many images to scroll in a applet.The url of the images are retiriving from the data base and given to the applet using jsp.The problem is when the page is reloaded it takes much time to show the applet again even i am using the archive tag.Can any one tell me how to get rid of this reloading problem.
    Regards,
    Prakash

    Hi,
    Thanks for the reply.Actually i am not reloading the page.when i go to some other page and comes back it takes a long time ro load the page.Is there any way to overcome this problem.
    Regards,
    Prakash

  • Force applet to reload

    ok, i have an applet running on a website, which is working fine. However, if i make a modification to the code, recompile and place the new class file on the website, without changing the name, then to get the applet to reload, i have to close all open browsers, open the java control panel, delete the class file from the java cache, open the browser again and reload the page, which is driving me nuts (only a short drive :) )
    is there an easier way? I tried using the cache_option = no idea, but with low confidence that i'm doing it right!!! here's the html code i've got at present...
    <HTML>
    <HEAD>
    </HEAD>
    <BODY BGCOLOR="000000">
    <CENTER>
    <APPLET
         code     = "FillRectTest.class"
         width     = "500"
         height     = "300"
         >
    <param name="cache_option" value="no">
    </APPLET>
    </CENTER>
    </BODY>
    </HTML>

    Is it possible that my applet is being cached somewhere inbetween the web server and my computer? After making a change to a class file on the server i delete all copies on my computer ( i did a search of the whole c drive for possible copies ) and reload the web page. But it still returns the old version of the applet!! is my internet service provider caching the class file after i load it say two times? this is driving me crazy... thanks for the disable cache idea, it would have worked quite neatly but for this other problem.

  • IF Form region AND report + search tool in same page THEN = problem

    Helllo everybody
    I posted an initial and now the advanced as I received helpful comments but still is unsolved:
    Problem:
    If I have a Form, and a Report With a Search feature on the same page the problem is that when I click on the button of Search to find records in the Report, the page reloads as it goes and returs to the server. Alright, however, that reloading causes the Form to submit data while there is no data because I was not working with the Form. When the report gets the "submission of the Form" it receives all empty data and it complains as it cannot have Null values in its rows.
    Solution:
    The thing would be to tell the form not to submit anything unless expressley pressed the button Create or Save. It seems that these buttons activate when the page is reloaded I mean reloaded by haiving pressed the button Search of the Reports region.
    The helpful comments were in the direction of going to Processes, Automatic Row Processing and then choosing a conditional for processing of the Form, that it, it would only activate (submit itself if that condition is met)
    So I go to PL/SQL Function body Returning a boolean and I paste this: RETURN :REQUEST IN('SAVE','CREATE');
    but the problem continues unsolved, that doesnt help. It must be very close but there is something I am missing
    thank you very much
    Alvaro
    Edited by: user12155340 on 18-Nov-2009 15:04

    Hi,
    I think this is double post.
    BUTTON CLICK ON SEARCH ITEM CAUSES OTHER REGIONS (FORM) IN TABLE TO ERRORS
    Please read my last comment from that link.
    Application express forum might give you better and precise answer.
    You need just figure out how set conditions
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#sthref149
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#sthref237
    Br, Jari
    Edited by: jarola on Nov 19, 2009 12:51 PM
    BTW, I remember that there was just few days ago same kind question answered in Application Express forum.
    I post link if I find it. You may try find it also

  • Problem: codebase, jar and image reloading problem please help!

    Hi Java Gurus,
    I have written an applet that extends JApplet for viewing webcam. In order to reduce the download time I put my classes into a doorcam.jar file. The following is my <applet> tag in my html file.
    <applet code="CameraApplet.class"
    archive="doorcam.jar"
         codebase = "webcam/classes"
         width="375" height="475">
    <param name="imagePath" value="http://judge/webcam/images">
    <param name="webCamImage" value="door.jpg">
    <param name="COMPort" value="COM2">
    <param name="frameRate" value="10"> <!-- could not exceed more than 10-->
    <param name="host" value="judge">
    </applet>
    The fist problem is that my class file does not get loaded from the jar file if i provide the "codebase" attribute as above. Instead the browser load every single class file from the webserver. This has some problem too. Coz the browser sometimes just thorough NullPointerException or ClassNotFoundException. After much of debugging I found out that the problem is the IE browser which seldom fails to load classes or image file from the server. If i referesh the browser the applet and all its classes loaded successfully and runs smoothly. This behaviour never occurs when running with "appletviewer".
    I wanted all my classes to be loaded from my jar file. After much of trial and error I found out that if i remove "codebase" attribute the browser loads the classes from my jar file and applet loads very fast. This is where the second problem comes in. The browser does not reload my webcam image file so that the webcam become alive with live images, like before.
    If I run on "appletviewer" everything works fine my web cam is displayed properly. But in IE browser the image does not get reloaded when I refresh my image to give live to my webcam display. The refresh method is given below.
    private void refresh(final URL url) {
    Image webCamImage =getImage(url);
    webCamImage.flush(); // flush out the previous image
    webCamImage = getImage(url); // get a new image
    webCamImageIcon.setImage(webCamImage); webCamImageIcon.paintIcon(webCamLabel, webCamLabel.getGraphics(), 15, 15);
    When I add the "codebase" attribute back, the image gets reloaded for every refresh() and everything works fine. But the classes are also loaded from the server. And occasionally also suffers Class loading and image loading problem. As I presented earlier, when I do refreshing in the browser everything gets loaded and the applet function correctly with web cam displaying very well.
    The problem is so strange that I could not find any way to solve it.
    It would be a great help to me if somebody provide me some work around to the problem.
    I tested on Windows 2000, Windows XP, IE 5.5, IE 6 with J2SDK 1.4.0.
    Thank you all very much in advance.
    best regards,
    Judge

    Thank you so much for the suggestions. I did tried the way u suggested. The problem still the same.
    I think its the problem between IE browser and Java Plug-in.
    I which SUN would find these incompatibilities and solve these problems.
    I even tried using java SDK and plug-in 1.4.1 it even worst. It can't even load an applet. And it does not show any loading messages nor any error messages. It just show a cross sign on the upper left coner.
    I would be so glad, if Sun would try to eliminate the inconsistancies such as caching, loading, initializing etc between browser and its Java plug-In. For example, applets behave well in appletviewer and behave unpredictably in browser environment.
    I have seen so many people in the forums with all sorts of problems because of this.
    Right now I m desperately looking for work around to my problem.
    If somebody would provide me with the solution to my problem it would be a great help to me.
    thank you all so much.
    best regards,
    Judge

  • JApplet Reloading Problem

    Hi,
    I am developing a Swing applet, which actually runs quite a heavy application. It uses at least two jar files too.
    the functionality requires that i open the page containing in a new browser window. I do that using window.open() successfully.
    Once the applet is loaded and working, i close the child window. (the client might always do that...) And then i click again on the link for opening the applet in a new browser window (the original place for firing the applet), what i expect is that the applet should reload itself.
    But that's not what is happening. It doesn't do anything written inside any of the methods, i.e. all of the init, start etc. are skipped.
    And effectively, i have to have a fresh instance of browser (parent) to be able to launch the applet again.
    Could anybody throw some light on this thing. What i want is that the applet should be loaded again whenever i click on that link for loading it.
    any sort of help would do.
    thanks and regards
    raghav..

    An applet will only be reloaded if the browser's cached copy is older than the one that resides on your server. In your case the applet is the same only the data it's displaying is different, what you should do is make sure that whatever component you used to display the data is repainted by calling the repaint method.
    ;o)
    V.V.

  • Spry tabs shouldn't open before page reload/refresh

    I have a big problem.I said "big problem".Because it has stolen my days/weeks.I have tab panel(5-6 tabs). When i clicked any tab, naturally content doesn't reload page.At the point i added url's end ?tab=0, for example : myprofile.php?tab=1.Now i clicked a tab and reload page.But when i clicked a tab, firstly tab display later page reload.This situation is unpleasant.I want to open when i clicked tab, after reload page, show tabs contents.I have looked for it for days.But i couldn't find.
    Please help me.
    Thanks.
    Battal Gazi

    I am glad to help.Theese my codes :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
      for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    //-->
    </script>
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0" onfocus="MM_goToURL('parent','dodo.php?tab=0');return document.MM_returnValue">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0"><a href="#" onclick="MM_goToURL('parent','dodo.php?tab=1');return document.MM_returnValue">Tab 2</a></li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">deneme</div>
        <div class="TabbedPanelsContent">
          <p>bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbkkkkkkkkkkkkkkkkkkkkkkkkkkddddddddddddddddddddddddddd ddddddddddddddd</p>
          <p>sddssdjjjjjjjjjjjjkkkkkkkkkkkkkkkkkk</p>
        </div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", { defaultTab: -1 });
    //-->
    </script>
    </body>
    </html>

  • What would be the reasons for my iMac keyboard to freeze up while online? Several page reloads brings it back but only for one set of typing. If I stop or need to delete it freezes.

    Using Firefox, Safari and Chrome depending on what I am working on or gaming. All recent updates as of 3.19.13
    iMac is fully loaded first quarter 2009 model. I use Office.
    Problem:
    While online typing just stops. This occurs most frequently when I have to change something or delete, it does not matter how many letters or numbers.
    Page reloads sometimes take 2 or 3 times for any effect, then it is only for one straight set of typing. If I have to stop and delete or go back and do something as small as adding a letter it will not type. The is well known muted "dump" sound.
    Is it possible that I was somehow infected with malware? No one else uses the computer and I do not go to any sites I am unfamiliar with or are gambling or ****.
    Help please. I am a writer.

    Take a look at your computer's CPU and RAM usage with Activity Monitor, It some like your system is slowing down not you keyboard.  Take a look at this link, http://support.apple.com/kb/HT1342?viewlocale=en_US&locale=en_US
    Also try to verify/repair your hard drive with disk utility, see this link, http://support.apple.com/kb/HT1782?viewlocale=en_US&locale=en_US

  • How do i cause the applet to reload?

    How do i cause the applet to reload?
    i have abutton in my applet "newGame" that supose to load the game again, How do i do that?, calling init again doesnt work...

    How do i cause the applet to reload?
    i have abutton in my applet "newGame" that supose to
    load the game again, How do i do that?, calling init
    again doesnt work...This is my question, too.
    At last, I kill the http process to reload a applet. It is ok. But I think it is not a good way to resolve the problem.

  • How stop sound on flash movie when page reloads?

    CLICK
    HERE TO VIEW THE SITE
    The problem is obvious. The flash banner has sound. Whenver
    you go to ANY page the page reloads and the sound replays.
    This template only allows you to use one header, so I cannot
    make 1 with sound and 1 without sound.
    Any ideas how I can handle this? Not sure if frames will work
    in this case. Your ideas????

    Use sharedobjects, they are kind of like cookies. You could
    do something
    similar like this sample I made here:
    http://www.smithmediafusion.com/blog/?p=212
    If the user has already seen your banner, make it go to a
    different frame
    and play somethin else OR tell the sound not to play. Make
    sense?
    Dan Smith > adobe community expert
    http://www.dsmith.tv
    "robertnzana" <[email protected]> wrote in
    message
    news:fgqn87$5n1$[email protected]..
    >
    http://stores.channeladvisor.com/Auto-Parts-Direct-To-You/
    >
    > The problem is obvious. The flash banner has sound.
    Whenver you go to
    > ANY
    > page the page reloads and the sound replays.
    >
    > This template only allows you to use one header, so I
    cannot make 1 with
    > sound
    > and 1 without sound.
    >
    > Any ideas how I can handle this? Not sure if frames will
    work in this
    > case.
    > Your ideas????
    >

  • Page style problem!!

    some website still looks like NO page style even if I select Basic Page Style, and when I try to log in to 163 email, it always says that problems occur when loging in to the mail navigation bar and the page style is abnormal and I cannot open any links in the email page.

    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Animated gif and page refresh problem

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

  • Question: Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages? - Problem: I have 1400 e-mails with attachments that need to be conv

    Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages?
    - Problem: I have 1400 e-mails with attachments that need to be converted into pdf and the attachments cannot be embeded.
    System: PC Windows 7 using Acrobat X Prof. - Thank you!

    Hi ,
    There is an option of embedding index for faster search while converting email to a PDF .
    However I am not sure that will serve your purpose or not .
    I would recommend you to get in touch with Microsoft support as well .
    Meanwhile I'll work on it and get back to you in case I get a desired solution .
    Regards
    Sukrit Dhingra

  • Page expire problem in one env of two environments having same code

    Hi,
    We have an web application deployed into two environments. The application versions and server versions are same in both environments. We are using sun one application server.
    When we click on back button (Say Env1) we are getting page exipre problem. The same code is working fine in other env (Say Env2).
    We have not coded anywhere to clear the client side information after it is displayed. It looks like there is some server setting using which we can specify not to save any information at client machine.
    Can any one of you help me in resolving this issue.
    Thanks in advance.
    K Vishnu Chaithanya

    http://support.microsoft.com/kb/234067
    http://lists.evolt.org/archive/Week-of-Mon-20040405/157547.html

Maybe you are looking for

  • After Upgrade from 11.1.1.3 to 11.1.2.2 Essbase Application Not Shown in Calculation Manager

    I have upgraded from EPM 11.1.1.3 to 11.1.2.2 and now want to import Business Rules to Calculation Manager for use with Essbase. However I cannot see my Essbase Application in Calculation Manager; (only the provided sample applications are shown in t

  • Formatting External drive for Mac05

    I am trying to format a Western Digital external drive for Mac05 Extended (journaled) in order to transfer photos from my I photo program to free up space on my hard drive, as per suggestions received in this support site. I have downloaded informati

  • Exchange Server 2013 with a RADIUS server (freeRADIUS).

    Hello, I am a student and doing an internship. I have to test Microsoft Exchange Server 2013. I am using Windows Server 2012, I already installed Exchange Server 2013 on it and everything works as intended. But I couldn't find out how to configure my

  • Photo Stream not working on the Mac

    Photo Stream is working on my iPhone, iPad and MBP but can not get to work on my iMac. Everything is turned on. Any suggestions?

  • N95 8Gb phone via 3 with a promotional deal of the...

    Dear All, I received my N95 8Gb phone via 3 with a promotional deal of the Spiderman 3 movie already installed. Unfortunately the movie was not pre-loaded onto my phone. Your Nokia service team (UK) advised me to contact 3, who told me to contact Nok