title: How to refresh Java Applet?
body: <p>I'm trying to use Java Applet for my website.
  but I have a problem with refresh java applet content.</p>
  
  <p>here is my code, (AppletTest.java)</p>
  
  <pre><code>import java.applet.*;
  import java.awt.*;
  
  
  public class AppletTest extends Applet{
  
      public void init(){
  
      }
  
      public void stop(){
  
      }
  
      public void paint(Graphics g){
          g.drawString("ABC",20,20); //I will draw DEF and FFF after ABC.
      }
  
  }
  </code></pre>
  
  <p>and HTML is (appletTest.html)</p>
  
  <pre><code> &lt;body&gt;
    &lt;applet code="AppletTest.class" name='AppletTest' width='500' height='300' style='border:1px solid #cdcdcdl'&gt;
      &lt;param name='cache_option' value='no'&gt; // I put this code to avoid browser remember applet but it does not work. :(
    &lt;/applet&gt;
   &lt;/body&gt;
  </code></pre>
  
  <p>Firstly I draw 'ABC' and It draw well.</p>
  
  <p>and I change 'ABC' to 'DEF' and compile again and run it.</p>
  
  <p>it draw 'DEF' well. And I change 'DEF' to 'FFF' and compile and run.</p>
  
  <p>but it does not change to 'FFF'. it still 'DEF'. I refresh the page many time but it is not changed.</p>
  
  <p>I think my browser remember pre applet content. so to avoid it, I put the <code>&lt;param name='cache_option' value='no'&gt;</code> code into applet tag. but it does not work...</p>
  
  <p>anybody know this, please advice me.</p>
  
  <p>Thank you!</p>