Java Code

import java.awt.*;
import javax.swing.*;
public class className extends JApplet  implements Runnable
{	
   Thread thread;
   public void init( )
   {
		// put code here
   }
   public void start( )
   {
       thread = new Thread( this );
       thread.start( );
   }
   public void run( )
   {
      while( true )
      {
		// put code here
	 	try {
	      Thread.sleep(500);
	 	}
	 catch( Exception e ) { }
      }
   }
   public void stop( )
   {
      if ( thread != null )
      {
          thread.stop( );
          thread = null;					
      }
   }
}

©2007- by E.S.Boese. All Rights Reserved