import java.applet.Applet;
import java.awt.*;

public class ClickBlob extends Applet
    implements Runnable
{

    Thread threadBlob;

    public void start()
    {
        if(threadBlob != null)
            threadBlob.start();
    }

    public ClickBlob()
    {
        threadBlob = new Thread(this);
    }

    public void stop()
    {
        if(threadBlob != null)
            threadBlob.stop();
    }

    public boolean mouseUp(Event e, int x, int y)
    {
        showStatus("x:" + x + "y:" + y);
        Thread newthreadBlob = new ClickBlobThread(x, y, getGraphics());
        showStatus("donex:" + x + "doney:" + y);
        return true;
    }

    public void run()
    {
        setBackground(Color.white);
    }

    public void init()
    {
        setBackground(Color.white);
    }
}