FileDocCategorySizeDatePackage
Thread1.javaAPI DocExample896Tue Mar 27 11:28:20 BST 2001None

Thread1

public class Thread1 extends Applet implements Runnable

Fields Summary
Thread
myThread
Constructors Summary
Methods Summary
public voidinit()

	myThread = new Thread(this, "anyoldname");  // Step 4
	
	myThread.start();    // Step 5
	
public voidpaint(java.awt.Graphics g)

g.setColor(Color.red);
		int pos=0;
		for (int  i=0; i<1000; i++)
		{
		waitaMo();
		g.fillOval(20,20,20+i, 20+i);
		} // end for
	
public voidrun()

 
	for (long i=0; i<3000; i++)
		{
		showStatus("Thread Running" + i);
		} // end for
	
public voidwaitaMo()

	long j;
	for(j=0; j<1000000; j++);