import java.awt.*;
import java.net.*;
import java.io.*;

public class Test {
     public static void main(String args[]) {
	  (new Thread(new Glah())).start();
     }

}
class Glah implements Runnable {
     public void run() {
          Frame f = new Frame();
	  TextArea ta = new TextArea();
	  f.setLayout(new FlowLayout());
	  f.add(ta);
	  f.resize(500,200);
	  f.show();
	  f.repaint();
	  int n;
	  byte b[];
	  try {
	       while(true){
		    ta.appendText("\nThis is a test ");
		    f.repaint();
		    Thread.sleep(500);
	       }
	  } catch (Exception e) {
	       System.out.println("oops "+e);
	  }
	  
     }
}	
