I am currently building an instant messaging client server application and have hit a brick wall as far as I can see....I was wondering if someone could help?

I have an initial class that takes user input via a textArea and a seperate class that gets fired off on the click of the submit button which handles all the socket stuff. Now I have all the communication working via command line but how can I get the variables (message) back to the initial class (gui) each time a message is sent between 2 user? The only way I know how to get variables between classes is via constructors....

Should I merge the two classes or what?

Thanks in anticipation