How do I refresh applet?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How do I refresh applet?

  1. #1
    Join Date
    Oct 2002
    Posts
    1

    How do I refresh applet?

    I'm working on a Java version of a Flash gag I saw a few months ago, and I've done a pretty good job of recreating the effect.

    My problem is that when I offer the user a chance to "Go Back" or play the activity a second time, the java applet won't initialize. So the player has to quit the browser and start from scratch.

    Is there something I can do to my activity to make the applet reload each time?

    FYI: The activity can be seen here:

    http://www.evolutionary-marketing.com/Gobble/start.htm

  2. #2
    Join Date
    Sep 2002
    Posts
    16
    From what I understand, once an applet is loaded, if you want to load it again, the browser has to be closed, then opened again.
    Jayceepoo

  3. #3
    Join Date
    Jul 2002
    Posts
    60
    Hi!
    Nice applet ;-)

    Remember that APPLET has 4 methods, init(), start(), stop(), destroy( );

    My hunch is that you'll want to implement them
    in your applet somewhere so it will refresh:

    http://java.sun.com/docs/books/tutor...etMethods.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center