ileBut.addActionListener(this);
qq.sendBut.addActionListener(this);
qq.refile.addActionListener(this);
rm = new receiveSMG(this);
rm.start();
}
public void serverListen(){
broadcast = new BroadcastThread();
broadcast.start();
}
public void actionPerformed(ActionEvent e){
if(e.getSource() == myw.pb.button1 ){
myw.pa.chat_txt.append(myIP+": "+myw.pb.msg_txt.getText()+"\n");
for(int i=0;i < clients.size();i++){
if(!clients.elementAt(i).toString().equals(myIP))
{
try{
String message = myIP+": "+myw.pb.msg_txt.getText().toString();
InetAddress ia = InetAddress.getByName(clients.elementAt(i).toString());
byte[] bs = message.getBytes();<