import java.applet.*;
import java.awt.*;

public class ColorTest extends Applet implements Runnable
{
	private Thread	 m_ColorTest = null;


	public ColorTest()
	{
	}

	public String getAppletInfo()
	{
		return "Name: ColorTest\r\n" +
		       "Author: Brian Jahns\r\n" +
		       "Created with Microsoft Visual J++ Version 1.1";
	}


	public void init()
	{
    	resize(520, 240);

	}

	public void destroy()
	{
	}

	public void paint(Graphics g)
	{
		g.drawString("Running: " + Math.random(), 10, 20);
	}

	public void start()
	{
		if (m_ColorTest == null)
		{
			m_ColorTest = new Thread(this);
			m_ColorTest.start();
		}
	}
	
	public void stop()
	{
		if (m_ColorTest != null)
		{
			m_ColorTest.stop();
			m_ColorTest = null;
		}
	}

	public void run()
	{
		while (true)
		{
			try
			{
				repaint();
				Thread.sleep(50);
			}
			catch (InterruptedException e)
			{
				stop();
			}
		}
	}


}
