How can i refresh the applet context

I want to make my applet refresh after some time that is 10 seconds.
i want to change the picture on the applet by this time please tell me how to do this i have used
public void repaint(long time);
But this did not work for me
thanx Alot

hi,
you need a thread which will sleep for 10 seconds, call repaint() and then goes to sleep again. Something like this:public class MyApplet implements Runnable
  private Thread repaintThread = null;
  public void run ()
    while (true)
      myThread.sleep (10000);
      repaint();
    // + catch Exceptions
  public void init ()
    myThread = new Thread (this);
    myThread.start();
greetz,
Stijn                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • How can i hnow the applet had load complet by javascript?

    hi,how can i hnow the applet had load complet by javascript?
    my applet load by <object> tag,
    i add a "onload" event listener to the html page's <body> tag,but the event listener is call by the page load,
    but ,the applet sometime has not loaded complet,so how can i know the applet had loaded complet!
    the <OBJECT>has some method to check the applet load status??
    3KS!

    You can have your applet call some javascript to inform that it is loaded. Make the call from your
    applet's start method
    Suppose you have a javascript function called "appletReady()"
    which sets a ready variable to true or whatever.
    Now in your start method of your applet you can do the following:
           JSObject win = null;
            try
                win = (JSObject)JSObject.getWindow((Applet)this);
                if (win == null)
                    System.err.println("JSObject window was null");
                else
                        win.call("appletReady",null);
            catch (Exception jse)
                System.err.println("Exception: " + jse);
            }Make sure you import netscape.javascript.
    And when you compile use the appropriate jaws.jar in your classpath
    It should be found under jre/lib of your JDK installation.
    I hope this helps.

  • ListOptions what event is called on refresh?how can i refresh the sessionB

    Hi everyone, i'm currently starting my studies on this platform ...and i'm now going trough some problems that i hope someone can help me out on them.
    I have a project that involves accessing a xml file , and i managed to put some random values of the file on a ListOptions for a listbox.Now i would like to know how can i refresh the session bean or refresh the listbox when i change something on the file?
    Thanks
    DMS

    Hi everyone, i'm currently starting my studies on this platform ...and i'm now going trough some problems that i hope someone can help me out on them.
    I have a project that involves accessing a xml file , and i managed to put some random values of the file on a ListOptions for a listbox.Now i would like to know how can i refresh the session bean or refresh the listbox when i change something on the file?
    Thanks
    DMS

  • How can i refresh the session object

    Hello..
    I am jst learning jsp... i hav a problem plz help me...
    I am using <jsp:useBean id="util" class="myUtilClass" scope="session" />
    I hav modified the object content...
    how can i refresh the object...
    ie...i want to access the modified data in the session object...

    You don't do that. It should already be reflected.
    Unless you modified another instance of it. If this is the case, then fix your code logic accordingly that it modifies the right object instance.

  • How can i refresh the mail, to see the latest email received from my hotmail account. If i close Mail, the program, and re-open, then I can see the latest mail received. Is there a key combo-short-cut to do this.

    how can i refresh the mail, to see the latest email received from my hotmail account. If i close Mail, the program, and re-open, then I can see the latest mail received. Is there a key combo-short-cut to do this.

    isaackito wrote:
    how can i refresh the mail, to see the latest email received from my hotmail account. If i close Mail, the program, and re-open, then I can see the latest mail received. Is there a key combo-short-cut to do this.
    Mailbox menu>Get New Mail:

  • How can i customize the applet message...?

    Hi All,
    How can i customize the message in the applet, i.e while invoking the login form over the web its showing the default msg like " Oracle AS Forms Services", i would like to customize this, but i have down some changes in the D:\Forms10gR2\forms\j2ee\formsapp\formsweb\WEB-INF\web.xml file, but still its not showing the customized message.
    Kindly update me
    Thanks in advance
    Thangaraj

    Hi,
    Just try one of the following parameters at the formsweb.cfg
    # Forms applet parameter
    restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow_debug,allowNewConnections
    # Forms applet parameter
    formsMessageListener=
    # Forms applet parameter
    recordFileName=
    # Forms applet parameter
    serverApp=default
    # Forms applet parameter: URL path to Forms ListenerServlet
    serverURL=/forms90/l90servlet
    Then Restart your OC4J.
    Regards,
    Hamdy

  • How can I refresh the table in detailStamp in another table

    I have:
    <af:table value="#{bindings.View1.collectionModel}" id="table1"
    *rowDisclosureListener="#{myFun.rowDisclosureListener}">*
    <f:facet name="*detailStamp*">
    <af:panelFormLayout id="pfl2">
    <f:facet name="footer"/>
    <af:table value="#{bindings.View2.collectionModel}" *id="table2"*
    </af:table>
    </af:panelFormLayout>
    </f:facet>
    </af:table>
    Into *rowDisclosureListener* I wrote:
    *//With param read in row table1, I apply criteria in table2*
    ViewObject vo = ADFUtils.findIterator(getIteratorName()).getViewObject();
    if (vo != null) {
    ViewObject vo1 = ADFUtils.findIterator("myIterator").getViewObject();
    applyViewCriteriaOnViewObject(vo1, "myCriteria");
    vo1.setNamedWhereClauseParam("parm", vo.getCurrentRow().getAttribute("field1"));
    vo1.executeQuery();
    AdfFacesContext adfFacesContext = null;
    adfFacesContext = AdfFacesContext.getCurrentInstance();
    adfFacesContext.addPartialTarget(table.getParent());
    *In table2 I set partialTriggers="::::pc1 :::table1">*
    Everythings works perfectly (the criteria is applied correctly), but when I disclose row, table2 is empty. It is not refresh. Why?
    Thanks

    And now?
    How can I replace table2? What is the component that I can use istead of the table2? From ViewObject vo1 I received many rows.
    And I can not replace table1 with treetable (I do not know what to change).
    Thanks

  • How can I get the servlet Context from a WebService Implementation?

    I have made a webservice endpoint, using the conventional way (WSDL->wsimport->Java interface->implementation) . I need to get the servlet context below the implementation class. I haven't found any way to get the servletContext though. Any clues? Any help will be greatly appreciated.

    yes  i can found the words's unicode form Cmaps where may be at the type of tounicde and another Cmaps table just like "Adobe-GB1-GBK-EUC" ,but when the word dont have either of them how can i do? when i write a chinese word "一",it just the winansi encoding ,  there is not Cmap for me to use to change the "G208f" to the word "一"'s unicode value.
                   best wishes      thank you very much

  • How can I refresh the iTunes library

    Hi,
    How can the iTunes library be refreshed to remove oold entries and update file info. MP3 tags may well have been updated in other programs by it seem that iTunes does take this into account and I can't find a simple way of updateing this info other than to play a file.
    I would have thought there would be a simple refresh button or similar.

    Just select them all, using Edit > Select All.
    Then right-click and Get Info. Don't change anything, just cancel out of it.
    There is also a java script you can run, found here:
    http://home.comcast.net/~teridon73/itunesscripts/

  • How can you refresh the Music Album view in the Touchsmart 3.0 software?

    I have a load of albums stored on a network drive and was told to do the following to include a network share in the Touchsmart Music Library:-
    mklink /d rmusic "\\server\music" Where \\server\music is the network share
    All worked fine and my albums were shown in the Touchsmart Music Library
    The problem I'm finding is, if a track in the album has some info missing, for example the Album Artist, the Touchsmart Music Library thinks its a seperate album and shows it as a seperate album in the album view.
    I've gone in to the offending track on the album on my network share and have amended the info on it, using an mp3 tag editor. The problem I have is that I'm unable to refresh the Touchsmart Music Library to show the updates, as they are still showing as seperate albums, even though they are th same. Help!! (I hope this makes sence)

    you might want to try twonky media server running on your \\server, i think you have various album options you can play with so that hopefully your touchsmart library will conform to it.
    http://www.twonkyvision.de/learn.html
    HP ENVY 17-j005tx Notebook, HP ENVY Recline 27-k001a, HP ProLiant MicroServer Gen8 G2020T, HP MediaSmart EX495 Server, HP MediaVault 2020, HP ENVY 120 AiO Printer

  • ZCMIcon hidden by Policy How can i refresh the Agent instead

    Hello,
    we have the ZcmIcon hidden by Policy on most of our Clients. They have at the Moment 11.2.3 installed.
    Now i want to install 11.3.2 via ZENWORKS Webinterface.
    Everything works so far, but when i look at the pending Clients, it says that i need some Action, The agent has to be refreshed on the Client.
    If i have the ZCMIcon, i rightclick the Icon and can say "refresh".
    But where do i start the refresh, if no Icon is there?
    Sorry for the bad description, i am new to this Zenworks stuff, and that is all in German
    Thank You

    You can run "zac ref" local at the device or You can refresh it from zcc (go to the device and start the Task "refresh workstation" / "Arbeitsstation aktualisieren")
    Gruss - Frank

  • How can I Refresh the DashBords for every 5 minutes with latest data

    Hi,
    Here we are Using the DashBoards which are accessing the data from SSAS Data bases to the DashBoards.
    From Dash Boards page, we have to refresh the Dash Boards for the latest Data for every 5 minutes.
    can any body provide the solution for this.
    Thanks,
    Supraja.
    SUPRAJA'S

    Hi Tom,
    sorry for late response.
    i have Analysis services(AS) Data base. which is configured with ROLAP settings in SSAS.
    we are showing this AS Database Information in Dash boards.
    once we open the dash board, it will shows the latest information in dash boards obviously. 
    but, Mean while if any changes occured in AS data base, if we want to get that changes in dash boards we have to refresh the dash board (OR) we have to close & reopen the same dash board.
    apart from this if is there any other solutions technically,  Please suggest me.
    Thanks,
    SUPRAJA'S

  • I want to monitor a web stream but it drops out. How can I refresh the web site automatically?

    I work for a radio station that uses a web stream for sports broadcast at various times. My problem is the stream will stop and I have to make a manual refresh to get it going again. I understand there is a way to cause the browser to refresh at a set time I can choose. (such as once ever 60 minutes) I did see this working on one computer but it will not work on the computer I want to use for broadcast. I don't know if it is the version of FireFox I'm using or what? I need help!
    Don Linkous

    This is an about:config option for auto-refreshing. (http://browsers.about.com/od/allaboutwebbrowsers/a/accessibility_blockautorefresh.htm)
    Also try [browser. feedview. timerInterval] & [browser. feedview. reloadInterval]

  • How can you get an applet to obey the CSS z-index attribute?

    How can you get an applet to obey the CSS z-index attribute?
    I have a DHMTL page with a panel that I want to slide back and forth. But another part of the requirement is to have the panel look like it is sliding under another panel.
    The problem is that an applet is on the panel that slides. When the sliding panel move under the stationary panel the applet does not go under the stationary panel, but the reset of the sliding panel does render looking like it is sliding under.
    See below.
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~           #############***************           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #############^**************           ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    ~ has a z-index of 1
    # and * have a z-index 2
    # shows above ~ and below ^
    ^ has a z-index of 3What I am getting with the applet on the panel with a z-index of 2 is the following
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~           #############***************           ^ -
    - ~           #            ^             *           ^ -
    - ~           #  @@@@@@@@@@@@@@@@@@@@    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @@@@@@@@@@@@@@@@@@@@    *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #############^**************           ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    --------------------------------------------------------Where @ is the applet. Notice how the applet is on top of the ^ but the panel under it, ^, is under like it should be. All the panels are 1x1 tables with a border. So how can I get the applet on the drawing shown with # and * to follow the rendering of the z-index of 2?

    Hi,
    I have the same problem, and don't know how to solve it, So, i had tried to put my applet in a div tag wih z-index=0, but it still hide my other Dhtml divs with bigger Z-index (z-index =1000)
    Have you any idea to solve this.
    Thanks
    Hakim

  • How can i refresh view on query after changing the query?

    Hi,
    i built few view's on 1 query in BI7. after i made a change in the query i haven't seen it in the view, why?
    it's not refreshing automaticly from the query? and if it's not, how can i refresh the view?
    thanks
    Meirav
    Edited by: Meirava on Apr 2, 2009 11:43 AM

    Hi,
        You need to refresh that view and once again save the view with changed settings. Then it will brings according to the query changes.Once check the variables also.
    Regards
    Pcrao.

Maybe you are looking for

  • CS6 Sign in Required

    I work at a college with a bazillion corporate licenses for cs6 and we are getting this stupid sign in required adobe ID message when we launch cs6 apps. The first machine i installed it on does not give the error but all the subsequent ones have eit

  • Why I cannot Activate my Iphone4s with DTAC simcard.

    My dad bought Iphone4s of America and send it to me. My father that I bought without a contract worth about $ 700, but when I applied in Thailand. I'm not available. I know how to use it. This phone normally. This is IMEI for my IPHONE - 013072007395

  • Print Payment Voucher

    Hi Experts, My users want to print payment voucher for payment method Cheque and TT. What configuration should i do. What's the Tcode to print the payment voucher. Note: They do not use automatic payment program Thanks, Rashmi

  • Need advice on new hard drive for Time Machine, and have Firewire questions

    I have an Intel iMac 2.66GHz with 500GB internal drive. I am going to buy an OWC 1TB drive to use for Time Machine. I also have an older 160GB external drive with Firewire 400. I'd like to continue using it for extra storage, and would like both the

  • The program suspend occasionally,until I press "enter"

    Please help! my program is simple, but it don't run stablely! :(( Occasionally,it suspend, and when I press "enter",it resume, but when run for a few hours,it suspend again. my program just like that: ======================= try { while (true) { now