package plot;

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

public class DrawApplet extends Applet implements OutputReader {
	TextArea ta;
	public void init() {
		setLayout(new BorderLayout(0,0));
		int w, h;
		w = bounds().width; h = bounds().height - 300;
		ta = new TextArea();
		ta.setBackground(new Color(4*51, 4*51, 5*51));
		ta.setFont(new Font("Courier", Font.BOLD, 13));
		ta.setEditable(false);
		add("Center", ta);
		DrawPanel dp = new DrawPanel(w, h, this);
		add("South", dp);
		show();
	}
	
	public void read(String s) {
		ta.setText(s);
	}
}

