1  <!-- File:  AppletDemo2.html -->
  2  
  3  <html>
  4  <head>
  5  <title>Test AppletDemo2.java</title>
  6  
  7  <SCRIPT LANGUAGE="JavaScript">
  8  <!-- hide script from old browsers
  9  
 10  // Handle button clicks:
 11  function repaint() {
 12    // Invoke applet's repaint() method:
 13    document.AppletDemo2.repaint();
 14  }
 15  
 16  // end script hiding -->
 17  </SCRIPT>
 18  
 19  </head>
 20  
 21  <body>
 22  
 23  <FORM>
 24    Click the button to call the repaint() method of the applet:&nbsp;
 25    <INPUT TYPE="button" VALUE="repaint">
 26  </FORM>
 27  
 28  <P>
 29  <applet codebase="." code="AppletDemo2.class"
 30          name="AppletDemo2" width=400 height=125>
 31  </applet>
 32  
 33  </body>
 34  </html>