import java.awt.*;

public class DLA extends java.applet.Applet{

private Controls control_panel;
private Plot plot;
private Cluster cluster;
private Simulation sim;
public Thread runner;
private int LATTICE=15;

public void init(){
setLayout(new BorderLayout());
cluster = new Cluster(LATTICE);
plot = new Plot(LATTICE);
control_panel = new Controls(this);
sim = new Simulation(this,plot,cluster,control_panel,LATTICE);

add("Center",plot);
add("South",control_panel);}

public void start(){
runner = new Thread(sim);
runner.start();
}

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

}


