// TextArea¤ÎÎã import java.awt.*; import java.applet.Applet; public class TextATest extends Applet { TextArea ta1,ta2; Button b = new Button("OK"); public void init() { ta1 = new TextArea("Hello World",10,40); ta2 = new TextArea("Read-only area",5,40); ta2.setEditable(false); add(ta1); add(b); add(ta2); } public boolean action(Event e,Object o) { if(e.target instanceof Button) { String instr = ta1.getText(); System.out.println("String: "+instr); ta2.appendText(instr); } return true; } }