Reloading applet

Hi all!
I have been searching for a while for a code that would let me reload my Applet, but I haven't found anything really. Would anyone be able to tell me if there's a code that would allow that to happen.
It's just that I've created an Applet and there's a button whose event handler must restart the whole Applet but up to now it's not operating at all. I would be grateful if somebody could answer me this.
Yours,
Saulo

All I need is to make the same graphics from the start of the Applet to be displayed once a certain button is clicked. I thought that by realoading the Applet the result would be the same... I tried to put reapeat the code I've written for the beginning on the instance where the button is but that caused me a series of errors. I wonder what that might be, as all I had were components of a paint method.
Regards,
Saulo

Similar Messages

  • How to reload applet?

    I want to reload applet by the program. In the program, under some condition, I want to reload the applet. Please let me know how can I implement it.
    Thanks & Regards,
    Nasrin.N

    Hey fuckwit!
    Please stop multiposting every single question you have into three or four different forums.
    Thank you for your co-operation in this matter.

  • Reloading applet in opera throws NullPointerException in SunGraphics2D

    i have an Applet, which checks for Sun JVM. If MS JVM, it aborts. If Sun JVM, it starts new JApplet.
    Everything is working fine, until i tried to reload the html page with the applet tag in it.
    On MS IE, it is working. The Applet is stopped and then restarted.
    On Mozilla, it is working.
    But on Opera, the following Exception is thrown after i have reloaded the page once.
    After reloading, the Exception is also thrown everytime i scroll the page or reload the page.
    java.lang.NullPointerException
         at sun.java2d.SunGraphics2D.<init>(Unknown Source)
         at sun.awt.image.SunVolatileImage.createGraphics(Unknown Source)
         at java.awt.image.VolatileImage.getGraphics(Unknown Source)
         at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
         at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
         at java.awt.Container.paint(Unknown Source)
         at sun.awt.RepaintArea.paint(Unknown Source)
         at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    As said, i'm using an Applet class and an JApplet class. the Applet class has only AWT components,
    the JApplet class has swing components (a list and a few JButtons).
    i'm using a thread, but it is not started.
    also, after the reload in opera, the whole applet is started again (as usual), and AFTER the last debug message,
    this exception is thrown. so there is no code of myself after that last debug message.
    i am using java 1.4.2-beta, but users told me they have the same problem with my applet on other computers with
    other jvms.

    i tried a beta-version of opera 7.20 and here are some source code line numbers visible:
    perhaps someone can tell me now, what's happening there and give me a tipp how to solve this problem.
    java.lang.NullPointerException
    at sun.java2d.SunGraphics2D.<init>(SunGraphics2D.java:212)
    at sun.awt.image.SunVolatileImage.createGraphics(SunVolatileImage.java:176)
    at java.awt.image.VolatileImage.getGraphics(VolatileImage.java:223)
    at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4768)
    at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4748)
    at javax.swing.JComponent.paint(JComponent.java:798)
    at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
    at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
    at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
    at java.awt.Container.paint(Container.java:1312)
    at sun.awt.RepaintArea.paint(RepaintArea.java:177)
    at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
    at java.awt.Component.dispatchEventImpl(Component.java:3678)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • Unwanted reloading Applet behavior

    I have a dynamic JTree component on an applet and as and when the user uses the application, nodes are added to or deleted from the JTree. But looks like the Applet behavior is to reload the applet everytime it is revisited or minimized/maximized, and hence the JTree goes back to the initial empty tree state. The JTree's root is initialized in the init() and every time the user adds/deletes a node, the JTree is modified to reflect those node changes. But since the applet is part of a multi-frame HTML, the applet gets reloaded each time and reverts back to its initial state.
    How can I stop the applet from invoking the init(), start() and stop() method each time? Or is the alternative to using a custom JTree Data model, one that reads its data from a Database make more sense? In that way, everytime the applet is reloaded, the JTree reads the latest data from the database and does not go back to initial empty tree state?
    Thanks for all your replies in advance!

    If your applet is reloading, then it will go back to the initial state - invokes init method. To create persistent objects, you may be better off to store the state of the object on your server as a file (object serialization) or a data base. So, that you can reload the previous state even when the init method is invoked - applet reloaded.
    But if you are just maximizing, minimizing, cover/uncover the broswer that has the JApplet with the JTree it should be able to maintain it's current state since only repaint methods are invoked and not init.

  • Reloading Applet w/ a button....

    I have a tic tac toe game i just made, it pretty much works fine, except for few minor technical errors (such as the next player text being dispalyed after a win has occured.)
    However, what I would like to do is add a button that says "Play Again". Since I know how to add buttons that part is easy enough. What I don't know, and can't find easily, is how to add code that will make the applet reload upon the button press.
    I am looking for the easiest AND most efficient way possible. Thank you.

    Well I dont understand why you cant make an endless loop inside the applet insted of reloading the applet?
    this maybe work
    URL url;
    then in the code
    do this
    try{
    url=new URL("adress of the html page");
    catch(MalformedURLException e){
    getAppletContext().showDocument(url);
    this gets the applet to call the browser to load a specific html page, if you put the same adress, it will probably reload it.
    you also need to import those to make it work
    import java.net.URL;
    import java.net.MalformedURLException;
    hope this helps

  • How to load new sets of parameter to an applet without reloading applet

    hello,
    I am making an application wherein the there are 2 frames the left and the right. the left frames contains links and the right frame contains an applet that displays the images of the documents.
    So for example:
    DOC00001 has Image 1 and Image 2
    DOC00002 has Image 3 and Image 4
    At first applet will be loaded, and the loading applet (Splash screen) appears then displays Image 1 and Image 2. But when I click DOC00002, it is reloaded again(Splash Screen) before displaying image 3 and 4.
    Is there a way wherein I just call a function from the applet so that I dont need to reload again the applet and just change its display?
    hoping for help. thank you

    Hi,
    You can make an executable jar file such that when you double click on that it starts running. Just follow the steps.
    1. Open a notepad and write the following
    Main-Class: XXXXXXXX
    XXXXXXX means Your Main Class name. Don't forget to press Enter after you write your class name.
    2. Save the file as Mani.mf
    3. In the commant prompt ( your directory ) type following lines.
    jar cmf Mani.mf Demo.jar *.*
    4. This will make a jar file which is executable jar file
    Hope this will help you.
    Deepak

  • Reload applet from server

    Hi,
    I have an applet 'appl.java' which takes an data.xml file(exists on server), the applet is embedded on a web page. A button is also provided on the web page. When the user clicks on that button the server updates the data.xml file(on the server), now I need to reload the data.xml file as input to the applet. so i decided to refresh the page so that the applet gets reloaded but the applet does not process the new data.xml file. How should I reload the applet on the page with new data.xml?

    Hi Rajesh,
    Verify that file data.xml is not in a directory with a content expiration set.
    If so, the explorer will retrive it from cache.
    Regards, Gustavo Oga

  • Reload applet

    this is a silly question, but how do I make the browser reload the applet every time? It seems my is downloading and caheing the applet, so modifications in the code dont show.

    Try adding the following to your html file -- there is
    no guarantee that this will work unless your applet is
    kept on a secured server:
    <head>
    <title>whatever...</title>
    <meta http-equiv="expires" content="-1">
    <meta http-equiv="pragma" content="no-cache">
    </head>
    Thanks vv,
    Is there another way? I've tried it without success. I think the applet is cached and so the applet works the 'old' way even after I modify and re-compile my codes.
    The modification of the html page is reflected by control-refresh, yes. (but not the Applet). I can test it easily by modifying the size attributes of the Applet/Object tag.
    What is a secured server? My test is purely an intranet environment.
    Thanks

  • HELP with reloading applet AFTER it displays image

    Hi people
    I got a webpage that loads an applet which constantly needs to be refreshed in order for the applet to display a newer version of an image file (not very efficient I know). The image file is being constantly updated and so I need a way of refreshing the applet only AFTER it has been completely been loaded and is displaying the image?
    I thought that
    for(;;)
      Thread.sleep(3000);
      getAppletContext().showDocument(url);
    }might do it but all it seems to do is refresh the page before anything is displayed
    Any ideas?

    If I put this problem in another way then it might help you KIND bunch to help me out.
    My remote desktop application has only 1 little problem left. It displays the 1st image using the method below:
    public void scrn()
      try
        fileSize = dis.readInt();
        fileInBuffer = new byte[fileSize];
        dis.readFully(fileInBuffer, 0, fileSize-1);
        //Create an image from the byte array
        img = Toolkit.getDefaultToolkit().createImage(fileInBuffer);
        //Create a Canvas object and add the canvas to the applet
        canvas = new IRDPCanvas(img, this);
        canvas.addMouseListener(this);
        canvas.addKeyListener(this);
        add(canvas);
      catch (Exception ioe)
    }where dis = dataInputStream
    IRDPCanvas has the following method
    public void paint(Graphics g)
      System.out.println("in paint");
      if(image != null)
        if(tracker.checkAll(true))
          if(tracker.isErrorAny())
            System.out.println("Can't load image");
          cont.validate();
      g.drawImage(image, 0, 0, this);
    }where Container = cont
    My problem is that applet displays the first image and then stops. If I rrefresh the page then the applet would display the next image and stop. This means that I have to constantly hit refresh in order for it to display the next image after the current one. Is there a better way of doing this?
    I really need help here. PLEASE HELP.

  • Force IE to reload applet jar without closing browser?

    Hello,
    We have an applet that we need to support with both the Sun plugin and the MS JVM in IE. We do releases weekly and need to make sure our users get the most recent version of the jar when they launch the applet after a release. With the plugin, we can do this by using the cache version tags that the plug in supports, but with the MS JVM it appears that unless the browser is closed and reopened, the user will get the cached version of the applet from the browser cache (or the running JVM?). How can I ensure that the browser will get the newer version without having the users reopen their browsers. Also, does anyone know what the problem is here? Where does the MS JVM cache the applet? Is it sitting around in the JVM and only when the brower is closed and JVM destroyed that you can get the new version? How does the MS JVM deal with caching applets?
    BTW, I am not talking about making sure the HTML/applet tags arent cached, I dont think that is related to the jars being cached while the browser is still open.
    Thanks
    Aaron

    *** Jtrace: Found a free socket port: 2843
    native lib path C:\Program Files\Java\jre1.6.0_03\lib\ext*** Jtrace: nspr4.dll under C:\Program Files\Java\jre1.6.0_03\lib\ext\ielib is set to PATH
    *** Jtrace: Engine initialize once!
    native lib path C:\Program Files\Java\jre1.6.0_03\lib\ext*** Jtrace: Executing IeEmbed.exe -port=2843
    *** Jtrace: Connecting to native browser ... 0
    *** Jtrace: connected
    *** Jtrace: Process event to native browser: 0, 0,
    *** Jtrace: Send data to socket: 0,0,</html><body></html>
    *** Jtrace: Process event to native browser: 0, 1,
    *** Jtrace: Send data to socket: 0,1,459914</html><body></html>
    *** Jtrace: Read data from socket: 0,3042</html><body></html>
    *** Jtrace: Got a complete short message: 0,3042
    *** Jtrace: Process event from native browser: 0, 3042, null
    *** Jtrace: Process event to native browser: 0, 5,
    *** Jtrace: Send data to socket: 0,5,http://www.calpinetech.com</html><body></html>
    *** Jtrace: Process event to native browser: 0, 4,
    *** Jtrace: Send data to socket: 0,4,0,36,1000,464</html><body></html>
    *** Jtrace: Read data from socket: 0,3003</html><body></html>0,3022,back=0</html><body></html>0,3022,forward=0</html><body></html>
    *** Jtrace: Got a complete short message: 0,3003
    *** Jtrace: Process event from native browser: 0, 3003, null
    *** Jtrace: Got a complete short message: 0,3022,back=0
    *** Jtrace: Process event from native browser: 0, 3022, back=0
    *** Jtrace: Got a complete short message: 0,3022,forward=0
    *** Jtrace: Process event from native browser: 0, 3022, forward=0
    *** Jtrace: Read data from socket: 0,3024,Waiting for about:blank...</html><body></html>0,3022,back=0</html><body></html>0,3022,forward=0</html><body></html>
    *** Jtrace: Got a complete short message: 0,3024,Waiting for about:blank...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for about:blank...
    *** Jtrace: Got a complete short message: 0,3022,back=0
    *** Jtrace: Process event from native browser: 0, 3022, back=0
    *** Jtrace: Got a complete short message: 0,3022,forward=0
    *** Jtrace: Process event from native browser: 0, 3022, forward=0
    *** Jtrace: Read data from socket: 0,3023,about:blank</html><body></html>0,3004</html><body></html>0,3024,Done</html><body></html>0,3005</html><body></html>0,3023,about:blank</html><body></html>0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3023,about:blank
    *** Jtrace: Process event from native browser: 0, 3023, about:blank
    *** Jtrace: Got a complete short message: 0,3004
    *** Jtrace: Process event from native browser: 0, 3004, null
    *** Jtrace: Got a complete short message: 0,3024,Done
    *** Jtrace: Process event from native browser: 0, 3024, Done
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Got a complete short message: 0,3023,about:blank
    *** Jtrace: Process event from native browser: 0, 3023, about:blank
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3042
    *** Jtrace: Dispatch event from NativeEventThread: 3003
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Back State changed = false
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Forward State changed = false
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Back State changed = false
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Forward State changed = false
    *** Jtrace: Dispatch event from NativeEventThread: 3023
    *** Jtrace: Dispatch event from NativeEventThread: 3004
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Dispatch event from NativeEventThread: 3023
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3001,http://www.calpinetech.com/</html><body></html>
    *** Jtrace: Got a complete short message: 0,3001,http://www.calpinetech.com/
    *** Jtrace: Process event from native browser: 0, 3001, http://www.calpinetech.com/
    *** Jtrace: Dispatch event from NativeEventThread: 3001
    *** Jtrace: URL = http://www.calpinetech.com/
    *** Jtrace: Send data to socket: @0,3001,0</html><body></html>
    *** Jtrace: Read data from socket: 0,3003</html><body></html>0,3024,Done</html><body></html>0,3003</html><body></html>
    *** Jtrace: Got a complete short message: 0,3003
    *** Jtrace: Process event from native browser: 0, 3003, null
    *** Jtrace: Dispatch event from NativeEventThread: 3003
    *** Jtrace: Got a complete short message: 0,3024,Done
    *** Jtrace: Process event from native browser: 0, 3024, Done
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Got a complete short message: 0,3003
    *** Jtrace: Process event from native browser: 0, 3003, null
    *** Jtrace: Dispatch event from NativeEventThread: 3003
    *** Jtrace: Read data from socket: 0,3005</html><body></html>0,3024,Waiting for http://www.calpinetech.com/...</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Got a complete short message: 0,3024,Waiting for http://www.calpinetech.com/...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for http://www.calpinetech.com/...
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3024,Waiting for http://www.calpinetech.com/...</html><body></html>
    *** Jtrace: Got a complete short message: 0,3024,Waiting for http://www.calpinetech.com/...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for http://www.calpinetech.com/...
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Read data from socket: 0,3022,back=0</html><body></html>0,3022,forward=0</html><body></html>
    *** Jtrace: Got a complete short message: 0,3022,back=0
    *** Jtrace: Process event from native browser: 0, 3022, back=0
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Back State changed = false
    *** Jtrace: Got a complete short message: 0,3022,forward=0
    *** Jtrace: Process event from native browser: 0, 3022, forward=0
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Forward State changed = false
    *** Jtrace: Read data from socket: 0,3022,back=0</html><body></html>0,3022,forward=0</html><body></html>0,3022,back=0</html><body></html>0,3022,forward=0</html><body></html>0,3023,about:blank</html><body></html>0,3004</html><body></html>
    *** Jtrace: Got a complete short message: 0,3022,back=0
    *** Jtrace: Process event from native browser: 0, 3022, back=0
    *** Jtrace: Got a complete short message: 0,3022,forward=0
    *** Jtrace: Process event from native browser: 0, 3022, forward=0
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Back State changed = false
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Forward State changed = false
    *** Jtrace: Got a complete short message: 0,3022,back=0
    *** Jtrace: Process event from native browser: 0, 3022, back=0
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Back State changed = false
    *** Jtrace: Got a complete short message: 0,3022,forward=0
    *** Jtrace: Process event from native browser: 0, 3022, forward=0
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Forward State changed = false
    *** Jtrace: Got a complete short message: 0,3023,about:blank
    *** Jtrace: Process event from native browser: 0, 3023, about:blank
    *** Jtrace: Dispatch event from NativeEventThread: 3023
    *** Jtrace: Got a complete short message: 0,3004
    *** Jtrace: Process event from native browser: 0, 3004, null
    *** Jtrace: Dispatch event from NativeEventThread: 3004
    *** Jtrace: Read data from socket: 0,3023,Calpine Technologies</html><body></html>
    *** Jtrace: Got a complete short message: 0,3023,Calpine Technologies
    *** Jtrace: Process event from native browser: 0, 3023, Calpine Technologies
    *** Jtrace: Dispatch event from NativeEventThread: 3023
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3024,Waiting for http://www.calpinetech.com/...</html><body></html>
    *** Jtrace: Got a complete short message: 0,3024,Waiting for http://www.calpinetech.com/...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for http://www.calpinetech.com/...
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3024,Waiting for http://www.calpinetech.com/...</html><body></html>
    *** Jtrace: Got a complete short message: 0,3024,Waiting for http://www.calpinetech.com/...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for http://www.calpinetech.com/...
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Read data from socket: 0,3024,Waiting for http://www.calpinetech.com/...</html><body></html>
    *** Jtrace: Got a complete short message: 0,3024,Waiting for http://www.calpinetech.com/...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for http://www.calpinetech.com/...
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Process event to native browser: 0, 15,
    *** Jtrace: Send data to socket: 0,15,</html><body></html>
    *** Jtrace: Read data from socket: 0,3061,<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Calpine Technologies</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK href="css/home_layout.css" type=text/css rel=stylesheet>
    <SCRIPT src="Scripts/AC_RunActiveContent.js" type=text/javascript></SCRIPT>
    </HEAD>
    <BODY>
    <CENTER>
    <DIV id=main>
    <DIV id=topnavigation align=left>
    <DIV class=fontboldgray id=topnavigationinner>
    <DIV align=left>  HOME    |    ABOUT US   |    SOLUTIONS    |    OUTSOURCING   |   CAREERS    |  HOW WE WORK   |  CONTACT US   |    LOGIN      </DIV></DIV>
    <DIV id=topnavigationicons align=right><IMG height=18 src="images/top_icon.gif" wi</html><body></html>_head
    *** Jtrace: Got a head message piece: <HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Calpine Technologies</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK href="css/home_layout.css" type=text/css rel=stylesheet>
    <SCRIPT src="Scripts/AC_RunActiveContent.js" type=text/javascript></SCRIPT>
    </HEAD>
    <BODY>
    <CENTER>
    <DIV id=main>
    <DIV id=topnavigation align=left>
    <DIV class=fontboldgray id=topnavigationinner>
    <DIV align=left>  HOME    |    ABOUT US   |    SOLUTIONS    |    OUTSOURCING   |   CAREERS    |  HOW WE WORK   |  CONTACT US   |    LOGIN      </DIV></DIV>
    <DIV id=topnavigationicons align=right><IMG height=18 src="images/top_icon.gif" wi
    *** Jtrace: Read data from socket: 0,3061,dth=60 useMap=#Map border=0> <MAP id=Map name=Map><AREA shape=RECT coords=43,0,60,12 href="#"><AREA shape=RECT coords=21,0,38,12 href="#"><AREA shape=RECT coords=0,0,17,12 href="#"></MAP></DIV></DIV>
    <DIV id=login style="DISPLAY: none; Z-INDEX: 3; OVERFLOW: hidden; PADDING-TOP: 4px; POSITION: absolute">
    <DIV id=logindiv>
    <FORM style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px" name=loginfrm action=# method=post ?>
    <TABLE class=logintable width="100%">
    <TBODY>
    <TR>
    <TD vAlign=top align=right colSpan=2><A onclick="overlayclose('login'); return false" href="#"><IMG src="images/n.gif" border=0></A></TD></TR>
    <TR>
    <TD class=logintext align=right>USER ID </TD>
    <TD align=left><INPUT name=userName></TD></TR>
    <TR>
    <TD class=logintext align=right>PASSWORD </TD>
    <TD align=left><INPUT type=password value="" name=password><INPUT type=hidden value=Login name=login></TD></TR>
    <TR>
    <TD align=middle></TD>
    <TD align=left><IMG style="CURSOR: hand" onclick="return va</html><body></html>_middle
    *** Jtrace: Got a middle message piece: dth=60 useMap=#Map border=0> <MAP id=Map name=Map><AREA shape=RECT coords=43,0,60,12 href="#"><AREA shape=RECT coords=21,0,38,12 href="#"><AREA shape=RECT coords=0,0,17,12 href="#"></MAP></DIV></DIV>
    <DIV id=login style="DISPLAY: none; Z-INDEX: 3; OVERFLOW: hidden; PADDING-TOP: 4px; POSITION: absolute">
    <DIV id=logindiv>
    <FORM style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px" name=loginfrm action=# method=post ?>
    <TABLE class=logintable width="100%">
    <TBODY>
    <TR>
    <TD vAlign=top align=right colSpan=2><A onclick="overlayclose('login'); return false" href="#"><IMG src="images/n.gif" border=0></A></TD></TR>
    <TR>
    <TD class=logintext align=right>USER ID </TD>
    <TD align=left><INPUT name=userName></TD></TR>
    <TR>
    <TD class=logintext align=right>PASSWORD </TD>
    <TD align=left><INPUT type=password value="" name=password><INPUT type=hidden value=Login name=login></TD></TR>
    <TR>
    <TD align=middle></TD>
    <TD align=left><IMG style="CURSOR: hand" onclick="return va
    *** Jtrace: Read data from socket: 0,3061,lform();" src="images/login.gif" name=login></TD></TD></TR></TBODY></TABLE></FORM></DIV></DIV>
    <DIV id=left>
    <DIV id=logocontainer>
    <DIV id=leftsidepadding align=left><A href="index.php"><IMG height=49 alt=Calpine src="images/logo.gif" width=245 border=0></A></DIV></DIV>
    <DIV id=left>
    <DIV id=aboutcalpine>
    <DIV id=leftsideaboutcalpine align=left><SPAN class=fontbold>About Calpine </SPAN><BR><SPAN class=font>Calpine technologies is a company specialized in custom software development, web design, Internet /Intranet applications and consulting services. The company has potential and experience in development of complex solutions for its customers. Calpine provides Exceptional Solutions at an Exceptional Price.</SPAN><BR><BR></DIV></DIV>
    <DIV id=search>
    <DIV class=fontbold id=leftsidesearch align=left>Search Site<BR>
    <DIV id=input><INPUT class=input name=textfield> <IMG height=17 src="images/go.gif" width=23></DIV>
    <DIV id=input><SPAN class=font>Advanced Search</SPAN></DIV></DIV></DIV>
    <DIV id=search></html><body></html>_middle
    *** Jtrace: Got a middle message piece: lform();" src="images/login.gif" name=login></TD></TD></TR></TBODY></TABLE></FORM></DIV></DIV>
    <DIV id=left>
    <DIV id=logocontainer>
    <DIV id=leftsidepadding align=left><IMG height=49 alt=Calpine src="images/logo.gif" width=245 border=0></DIV></DIV>
    <DIV id=left>
    <DIV id=aboutcalpine>
    <DIV id=leftsideaboutcalpine align=left><SPAN class=fontbold>About Calpine </SPAN><BR><SPAN class=font>Calpine technologies is a company specialized in custom software development, web design, Internet /Intranet applications and consulting services. The company has potential and experience in development of complex solutions for its customers. Calpine provides Exceptional Solutions at an Exceptional Price.</SPAN><BR><BR></DIV></DIV>
    <DIV id=search>
    <DIV class=fontbold id=leftsidesearch align=left>Search Site<BR>
    <DIV id=input><INPUT class=input name=textfield> <IMG height=17 src="images/go.gif" width=23></DIV>
    <DIV id=input><SPAN class=font>Advanced Search</SPAN></DIV></DIV></DIV>
    <DIV id=search>
    *** Jtrace: Read data from socket: 0,3061,
    <DIV class=fontbold id=leftsideevents align=left>Upcoming Event <BR><BR><SPAN class=font>See us at these upcoming shows</SPAN><BR><IMG height=51 src="images/upcoing.gif" width=193 border=0></DIV></DIV></DIV></DIV>
    <DIV id=domain>
    <SCRIPT type=text/javascript>
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','513','height','124','src','images/banner','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','wmode','opaque','movie','images/banner' ); //end AC code
    </SCRIPT>
    <OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height=124 width=513 classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000><PARAM NAME="_cx" VALUE="13573"><PARAM NAME="_cy" VALUE="3281"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="images/banner.swf"><PARAM NAME="Src" VALUE="images/banner.swf"><PARAM NAME="WMode" VALUE="Opaque"><PARAM NAME="Play" VALUE</html><body></html>_middle
    *** Jtrace: Got a middle message piece:
    <DIV class=fontbold id=leftsideevents align=left>Upcoming Event <BR><BR><SPAN class=font>See us at these upcoming shows</SPAN><BR><IMG height=51 src="images/upcoing.gif" width=193 border=0></DIV></DIV></DIV></DIV>
    <DIV id=domain>
    <SCRIPT type=text/javascript>
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','513','height','124','src','images/banner','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','wmode','opaque','movie','images/banner' ); //end AC code
    </SCRIPT>
    <OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height=124 width=513 classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000><PARAM NAME="_cx" VALUE="13573"><PARAM NAME="_cy" VALUE="3281"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="images/banner.swf"><PARAM NAME="Src" VALUE="images/banner.swf"><PARAM NAME="WMode" VALUE="Opaque"><PARAM NAME="Play" VALUE
    *** Jtrace: Read data from socket: 0,3061,="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false">
    <embed width="513" height="124" src="images/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="opaque" type="application/x-shockwave-flash" ></embed></OBJECT><NOSCRIPT>
    <embed src="images/banner.swf" wi</html><body></html>_middle
    *** Jtrace: Got a middle message piece: ="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false">
    <embed width="513" height="124" src="images/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="opaque" type="application/x-shockwave-flash" ></embed></OBJECT><NOSCRIPT>
    <embed src="images/banner.swf" wi
    *** Jtrace: Read data from socket: 0,3061,dth="513" height="124" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="opaque"></embed>
                                            </NOSCRIPT>
    <DIV id=domaingreen align=left>
    <DIV class=font id=domaingreencontents><SPAN class=fontboldyellowheading><A class=yelow href="life_science.html">LifeScience</A></SPAN><SPAN class=fontboldwhiteheading> Solutions</SPAN> <BR><SPAN class=fontwhite>We help clients to manage the bulk of data efficiently inorder to reduce discovery and development time .We are caterring services to the life science giants.</SPAN></DIV></DIV>
    <DIV id=domainblue align=left>
    <DIV class=font id=domainbluecontents align=left><SPAN class=fontboldyellowheading><A class=yelow href="graphic_service.html">Design</A></SPAN><SPAN class=fontboldwhiteheading> Services</SPAN><SPAN class=fontboldwhiteheading></SPAN> <SPAN class=fontwhite><BR>Calpine Creatives provides a full array of creative serv</html><body></html>_middle
    *** Jtrace: Got a middle message piece: dth="513" height="124" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="opaque"></embed>
                                            </NOSCRIPT>
    <DIV id=domaingreen align=left>
    <DIV class=font id=domaingreencontents><SPAN class=fontboldyellowheading><A class=yelow href="life_science.html">LifeScience</A></SPAN><SPAN class=fontboldwhiteheading> Solutions</SPAN> <BR><SPAN class=fontwhite>We help clients to manage the bulk of data efficiently inorder to reduce discovery and development time .We are caterring services to the life science giants.</SPAN></DIV></DIV>
    <DIV id=domainblue align=left>
    <DIV class=font id=domainbluecontents align=left><SPAN class=fontboldyellowheading><A class=yelow href="graphic_service.html">Design</A></SPAN><SPAN class=fontboldwhiteheading> Services</SPAN><SPAN class=fontboldwhiteheading></SPAN> <SPAN class=fontwhite><BR>Calpine Creatives provides a full array of creative serv
    *** Jtrace: Read data from socket: 0,3061,ices in all aspects of Web design , Graphic design and Print services.<BR>We believe in giving you the EXtra touches that really make your designs to get noticed. </SPAN></DIV></DIV>
    <DIV id=domaingreen align=left>
    <DIV class=font id=domaingreencontents><SPAN class=fontboldyellowheading><A class=yelow href="ecommerce.html">eCommerce</A></SPAN><SPAN class=fontboldwhiteheading> Solutions</SPAN><SPAN class=fontboldwhiteheading></SPAN><BR><SPAN class=fontwhite>We develop high-end custom e-commerce websites with specific goals of each client,High performance web applications completely tailored to suite your requirments. </SPAN></DIV></DIV>
    <DIV id=domainblue align=left>
    <DIV class=font id=domainbluecontents align=left><SPAN class=fontboldyellowheading><A class=yelow href="support.html">Infrastructure </A></SPAN><SPAN class=fontboldwhiteheading>Management</SPAN><SPAN class=fontboldwhiteheading></SPAN> <SPAN class=fontwhite><BR>We provide professional infr</html><body></html>_middle
    *** Jtrace: Got a middle message piece: ices in all aspects of Web design , Graphic design and Print services.<BR>We believe in giving you the EXtra touches that really make your designs to get noticed. </SPAN></DIV></DIV>
    <DIV id=domaingreen align=left>
    <DIV class=font id=domaingreencontents><SPAN class=fontboldyellowheading><A class=yelow href="ecommerce.html">eCommerce</A></SPAN><SPAN class=fontboldwhiteheading> Solutions</SPAN><SPAN class=fontboldwhiteheading></SPAN><BR><SPAN class=fontwhite>We develop high-end custom e-commerce websites with specific goals of each client,High performance web applications completely tailored to suite your requirments. </SPAN></DIV></DIV>
    <DIV id=domainblue align=left>
    <DIV class=font id=domainbluecontents align=left><SPAN class=fontboldyellowheading><A class=yelow href="support.html">Infrastructure </A></SPAN><SPAN class=fontboldwhiteheading>Management</SPAN><SPAN class=fontboldwhiteheading></SPAN> <SPAN class=fontwhite><BR>We provide professional infr
    *** Jtrace: Read data from socket: 0,3061,astructure management based on your total requirments.We offer round the clock service supports which will enhance your infrastructure perfromance and efficiency.</SPAN></DIV></DIV>
    <DIV id=domaingreenbottom align=left>
    <DIV class=font id=domaingreencontentsbottom><SPAN class=fontboldyellowheading><A class=yelow href="erp.html">ERP </A></SPAN><SPAN class=fontboldwhiteheading>Solutions</SPAN><SPAN class=fontboldwhiteheading></SPAN> <BR><SPAN class=fontwhite>The core development process of our organization comprises of prestigious ERPs.We have proven expertise in the arena of ERP.That has given us a distinctive edge in rendering many an ERP solution that have been hugely successful. </SPAN></DIV></DIV>
    <DIV id=domainbluebottom align=left>
    <DIV class=font id=domainbluecontentsbottom align=left><SPAN class=fontboldyellowheading><A class=yelow href="quality.html">Quality Control</A></SPAN> <SPAN class=fontwhite><BR>Our exclusive Quality department take care of all rigid quality assurance</html><body></html>_middle
    *** Jtrace: Got a middle message piece: astructure management based on your total requirments.We offer round the clock service supports which will enhance your infrastructure perfromance and efficiency.</SPAN></DIV></DIV>
    <DIV id=domaingreenbottom align=left>
    <DIV class=font id=domaingreencontentsbottom><SPAN class=fo

  • Applet reloads (applet newbie)

    Hi all.
    I've got a problem with an applet i'm developing. I try to show a line chart representing values where each point is associated with an image. This is contained within a JPanel and at the same time the JPanel is within a JApplet. The source of the problen is that when the explorer loads the applet, everything is ok but the images that doesn't appear anywhere. I've got two buttons for the user to be able to move from point to point of the chart and, when i click on one of them, the images happens to appear suddenly.
    I've tried to refresh the applet just at the end of the init() method using the repaint() method but with no success.
    For more info, the applet should run over jre1.4.0 and i'm using MSIE 6.0 because of the specifications of the project.
    Any help would be appreciated.
    Thanks.

    Hi all again. If anyone has read the question thanks. But i have found a solution (don't know if the better one) to the problem i had. I've learned about the MediaTracker class and i've used it to keep track on the images loaded and waiting until all of them have been loaded.
    Thanks again.

  • Exception while loading jars

    Hello. Sometimes when starting applet I get exceptions during loading:
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://gier.gamepoint.net/games/common-images-lobby_20110907_2_cleaned.jar.pack.gz
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         ... java internal classes
         at java.lang.Thread.run(Unknown Source)
    Caused by:
    java.io.IOException: Corrupted pack file: magic/ver = CAFED00D/0.0 should be CAFED00D/150.7 OR CAFED00D/160.1
         at com.sun.java.util.jar.pack.NativeUnpack.start(Native Method)
             ... java internal classes
         at java.lang.Thread.run(Unknown Source)or
    some exception
    Caused by: java.io.IOException: Pipe is already shut down
         at sun.plugin2.message.Pipe.checkForShutdown(Unknown Source)
         at sun.plugin2.message.Pipe.receive(Unknown Source)
         ... 8 moreand after that JVM exits. But after I press F5 the same applet is being loaded correctly.
    So question is: is there any possibility to handle exceptions during loading so I can call javascript to reload applet?

    It's nasty, but problem is that exceptions are absolutely random: first one I got only once, second with "Pipe is already shut down" I get more regularly but again without any pattern (and I never got it in IE, only Firefox). And my co-worker for example never got any of them. So it's sort of workaround for unexpected behavior and I'd be grateful if you tell me how to detect exceptions using javascript.
    But anyway we load applet using JNLP with "progress-class" and using pack200 for some jars.

  • LookAndFeel issue reloading an Applet in a Web page

    Hey all,
    I have an Applet that runs on a web page (loaded by servlets and JSP's using Tomcat 3.2.1 and Apache). I created my own LookAndFeel class and have a static function in the applet that sets the LookAndFeel to my new class. Everything works fine when the Applet is first loaded. However, when you exit the applet and then reload it, the custom LookAndFeel is gone and all I get is the default Metal. If I load the applet with appletviewer, I can reload it as much as I want and it always loads my LookAndFeel class.
    The static function is as follows
    /** Static initializer to set the LookAndFeel
    static {
    try {
    UIManager.setLookAndFeel(new MyNewLookAndFeel());
    catch (Exception e) {}
    I do not get any exceptions and like I said, everything works great when loaded with appletviewer.
    I have tried adding the SwingUtilities.updateComponentTreeUI(this); in either the start(), init(), or my own createGUI() function and it still does not work.
    Any ideas? Could this be a problem with the browser caching the applet? I am using IE 5.50.

    I have the same problem
    putting them in static doesn't keep the look and feel
    putting them in the applet constructor does'nt keep it
    putting them in init() doesn't keep it
    putting them in start() doesn't keep it
    heck, even putting them in all 4 of them together doesn't keep the look and feel, it always reverts back to metal

  • Applet reloaded : IE 7/8 problem only

    Hello all,
    I have this very weird issue with an applet : it does not stop reloading.
    More precisely, in IE, my applet is loaded in an ajax loaded DOM element. When I remove the DOM element : stop() is first invoked by the browser, but start() follows just after... !!!
    I have tried System.exit() in the destroy method, but depending on the browser and the java version, that may kill the browser itself.
    Has anyone encountered the same issue ? How can one properly dispose of the applet instance ?
    Thanks in advance for your replies.
    Anthony C.

    You may find the solution here:
    http://java.sun.com/docs/books/tutorial/deployment/applet/lifeCycle.html

  • Background image/reloading/closing applet

    2 questions:
    1) How do I put a background gif/jpg image on a frame window?
    2) Is there a method or command that can restart or reload the current applet?
    3) What's the best normal way to kill/exit the applet? (System.exit() ?)
    What about browser, how do I close the applet in the browser.
    Appreciate any help.
    Regards,
    Helix
    http://www27.brinkster.com/helixical

    I think if you understand Applet's life cycle clearly you'll find answers to questions 2 and 3:
    init() - initializes the applet for the first time.
    start() - starts the applet after initialization and after every time it was stopped. (answer for your Q2)
    paint() - does the actual painting of the applet.
    stop() - stops the applet (kind of temporary), can be restarted anytime.
    destroy() - kills the applet once for all. (answer for your Q3, call this whenever you want the applet to be destroyed).
    answer to Q1, try the following:
    in init():
    MediaTracker tracker = new MediaTracker (this);
    bgImage = getImage (new URL(getCodeBase(), getParameter("bgImage")));
    tracker.addImage (bgImage, 0);
    tracker.waitForAll();
    public void update( Graphics g) {
    paint(g);
    public void paint(Graphics g) {
    if(bgImage != null) {
    int x = 0, y = 0;
    while(y < size().height) {
    x = 0;
    while(x< size().width) {
    g.drawImage(bgImage, x, y, this);
    x=x+bgImage.getWidth(null);
    y=y+bgImage.getHeight(null);
    else {
    g.clearRect(0, 0, size().width, size().height);
    happy trying...
    iDriZ

Maybe you are looking for