in=new BufferedReader(new InputStreamReader(theSocket.getInputStream()));
out=new PrintWriter(new OutputStreamWriter(theSocket.getOutputStream()),true)
create input and oupput stream like this
and then get ur username from textfield like
and then send it to server with some initial string before it
so server can understand that it is username
like and get username from tht i think this much is enough.
thanks 4 thanks