i will type any word in the lower textfield then click the checkbox send and it will appear in the another textfield . . my problem is it always replace what i have send first in the textfield . . please help me in not replacing the word that i have send in the textfield . . thanks for ur help sory for my bad english.

package sample;

import java.awt.event.*;
import java.applet.*;
import java.awt.*;
public class chat extends Applet implements ItemListener
{
Checkbox send,cancel,clear,exit;
TextField txtWindow,txtChat;

public void init()
{
resize(500,250);
Panel p1 = new Panel();
Panel p2 = new Panel();

setLayout(new BorderLayout());
p1.setLayout(new GridLayout(2,1));
p2.setLayout(new GridLayout(1,5));


Label title = new Label("CHAT APPLICATION",Label.CENTER);
txtChat = new TextField(25);

txtWindow = new TextField(25);
Label lbl = new Label();
send = new Checkbox("SEND");
cancel = new Checkbox("CANCEL");
clear = new Checkbox("CLEAR");
exit = new Checkbox("EXIT");
Label lbl2 = new Label();
send.addItemListener(this);
cancel.addItemListener(this);
clear.addItemListener(this);
exit.addItemListener(this);
p1.add(txtWindow);
p2.add(lbl);
p2.add(send);
p2.add(cancel);
p2.add(clear);
p2.add(exit);
p2.add(lbl2);
p1.add(p2);







add(title, BorderLayout.NORTH);
add(p1, BorderLayout.CENTER);
add(txtChat, BorderLayout.SOUTH);
}

public void itemStateChanged(ItemEvent e)
{

if(e.getItemSelectable()==send)
{
send.setState(true);
cancel.setState(false);
clear.setState(false);
exit.setState(false);
String s = txtChat.getText();
txtWindow.setText(s);


}

else if(e.getItemSelectable()==cancel)
{
send.setState(false);
cancel.setState(true);
clear.setState(false);
exit.setState(false);
txtChat.setText("");
}

}

}