出错部分程序是这样的:
import java.net.*;
import java.io.*;
import java.awt.event.*;
import MyFrame;public class client{

public static void main(String[] args){
ClientFrame cf=new ClientFrame("Client Frame For UNIONJOB");
cf.listen();
}}class ClientFrame extends MyFrame{
Socket socket; StringReader si;
BufferedReader sin;
PrintWriter os;
InputStreamReader is;
BufferedReader bri; final String newLine=System.getProperty("line.separator"); String readline=""; public ClientFrame(String s){
super(s);
createConnection();
}

public void createConnection(){
try{
socket=new Socket("211.93.64.141",5000);
}catch(Exception e){
System.out.println("Error:"+e);
}
} public void listen(){
try{
is=new InputStreamReader(socket.getInputStream());
bri=new BufferedReader(is); while(true){
write("Job_Server: "+bri.readLine()+newLine);
}
}catch(Exception e){
System.out.println("Error:"+e);
}
}

public void actionPerformed(ActionEvent e){
try{
si=new StringReader(getText());
sin=new BufferedReader(si);
readline=sin.readLine(); os=new PrintWriter(socket.getOutputStream());
os.println(readline);
os.flush(); write("Job_Client: "+readline+newLine);
}catch(Exception ex){
System.out.println("Error"+ex);
}
} public void windowClosing(WindowEvent e){
try{
os.close();
bri.close();
socket.close();
}catch(Exception ex){
System.out.println("Error:"+ex);
} System.exit(1);
}
}