chat programe, kindly see the code and help me.

if you clear this doubt for me i shall really be grateful, as it is my project. the below code is chat program which runs really fine in console. so, i need this convert into applet.i have many problem regarding it. 1.how can i make TextField takes the input from user inplace of System.in. 2.do this particular program, if turn into applet requires to have signature or certificates. i fail to make this into applet, please guide me.. import java.io.*; import java.net.*; public class RunTCPClient implements ChatClient { public RunTCPClient() { } public void userHasEntered(String who) { System.out.println("---"+who+" has entered--"); } public void userHasLeft(String who) { System.out.println("---"+who+" has left---"); } public void incomingChat(String who,String chat) { System.out.println("<"+who+">"+chat); } public void disconnect() { System.out.println("chat server connection closed"); System.exit(0); } public static void main(String args[]) { int port=8080;