Left file: Present ClientFrame.java Right file: Completed ClientFrame.java
-+ | static JTextField theMessage; | |
try { | <> | |
JTextField theMessage=new JTextField(); | theMessage=new JTextField(); | |
-+ | try { | |
-+ | connect(theMessage); | |
new Listener().start(); | ||
public static void send_receive(JTextField the_message){ | <> | public static void send_chat(JTextField the_message){ |
-+ | class Listener extends Thread { | |
PrintWriter this_out; | ||
JTextField this_textfield; | ||
-+ | public Listener( ) { } | |